|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jsdsi.ldap.LDAPAttributes jsdsi.ldap.LDAPOp jsdsi.ldap.LDAPOperations
LDAP operations. Insert, retrieve and delete sdsi certificates from a LDAP server
Constructor Summary | |
LDAPOperations(LDAPParameters params)
Create a new instance of LDAPOperations |
Method Summary | |
boolean |
deleteAllCertificates()
Delete all based SPKI certificates from an LDAP server - CAUTION: The certificates no longer be available. |
boolean |
deleteCertificate(java.lang.String cn)
Delete a sdsi certificate from an LDAP server with a specified cn |
LDAPParameters |
getParameters()
Ldap parameters used to perform operations |
Certificate |
retrieveCertificate(java.lang.String cn)
Retrieves a sdsi certificate from an LDAP server with a specified cn |
void |
storeCertificate(java.lang.String cn,
Certificate certificate)
Store a sdsi certificate into an LDAP server with a specified cn, default hash algorithm "md5" is assumed |
void |
storeCertificate(java.lang.String cn,
Certificate certificate,
java.lang.String hashAlg)
Store a sdsi certificate into an LDAP server with a specified cn and a hash algorithm |
void |
toFile(java.lang.String filename)
Writes all based SPKI certificates on a LDAP server to a file. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public LDAPOperations(LDAPParameters params)
params
- ldap parametersMethod Detail |
public boolean deleteAllCertificates() throws LDAPSearchException
LDAPSearchException
- custom error for an empty search, not ldap server errorpublic boolean deleteCertificate(java.lang.String cn)
cn
- cn ldap schema attribute that represents certificate name
public Certificate retrieveCertificate(java.lang.String cn)
cn
- cn ldap schema attribute that represents certificate name
Certificate.fromSequence(Sequence)
public void storeCertificate(java.lang.String cn, Certificate certificate)
cn
- cn ldap schema attribute that represents certificate namecertificate
- sdsi certificatepublic void storeCertificate(java.lang.String cn, Certificate certificate, java.lang.String hashAlg)
cn
- cn ldap schema attribute that represents certificate namecertificate
- sdsi certificatehashAlg
- hash algorithm to use with the public keys, "md5" or "sha1"Certificate.getEncoded()
public void toFile(java.lang.String filename)
filename
- filename to write the certificatespublic LDAPParameters getParameters()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |