public class LdapEncryptCertPublisher extends java.lang.Object implements ILdapPublisher, IExtendedPluginInfo
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
LDAP_USERCERT_ATTR |
protected java.lang.String |
mCertAttr |
static java.lang.String |
PROP_REVOKE_CERT |
PROP_ENABLE, PROP_IMPLNAME, PROP_PREDICATEHELP_TEXT, HELP_TOKEN| Constructor and Description |
|---|
LdapEncryptCertPublisher() |
LdapEncryptCertPublisher(java.lang.String certAttr) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
ByteValueExists(netscape.ldap.LDAPAttribute attr,
byte[] bval)
checks if a byte attribute has a certain value.
|
IConfigStore |
getConfigStore()
Return config store.
|
java.util.Vector |
getDefaultParams()
Returns the initial default parameters.
|
java.lang.String |
getDescription()
Returns the description of the publisher.
|
java.lang.String[] |
getExtendedPluginInfo(java.util.Locale locale)
This method returns an array of strings.
|
java.lang.String |
getImplName()
Returns the implementation name.
|
java.util.Vector |
getInstanceParams()
Returns the current instance parameters.
|
netscape.ldap.LDAPAttribute |
getModificationAttribute(netscape.ldap.LDAPAttribute attr,
byte[] bval) |
void |
init(IConfigStore config)
Initialize from config store.
|
void |
publish(netscape.ldap.LDAPConnection conn,
java.lang.String dn,
java.lang.Object certObj)
publish a user certificate
Adds the cert to the multi-valued certificate attribute as a
DER encoded binary blob.
|
static boolean |
StringValueExists(netscape.ldap.LDAPAttribute attr,
java.lang.String sval)
checks if a attribute has a string value.
|
void |
unpublish(netscape.ldap.LDAPConnection conn,
java.lang.String dn,
java.lang.Object certObj)
unpublish a user certificate
deletes the certificate from the list of certificates.
|
public static final java.lang.String LDAP_USERCERT_ATTR
public static final java.lang.String PROP_REVOKE_CERT
protected java.lang.String mCertAttr
public LdapEncryptCertPublisher()
public LdapEncryptCertPublisher(java.lang.String certAttr)
public java.lang.String getImplName()
ILdapPublishergetImplName in interface ILdapPublisherpublic java.lang.String getDescription()
ILdapPublishergetDescription in interface ILdapPublisherpublic java.lang.String[] getExtendedPluginInfo(java.util.Locale locale)
IExtendedPluginInfogetExtendedPluginInfo in interface IExtendedPluginInfopublic java.util.Vector getInstanceParams()
ILdapPublishergetInstanceParams in interface ILdapPublisherpublic java.util.Vector getDefaultParams()
ILdapPublishergetDefaultParams in interface ILdapPublisherpublic IConfigStore getConfigStore()
ILdapPlugingetConfigStore in interface ILdapPluginpublic void init(IConfigStore config) throws EBaseException
ILdapPlugininit in interface ILdapPluginconfig - the configuration store to initialize from.ELdapException - initialization failed due to Ldap error.EBaseException - initialization failed.public void publish(netscape.ldap.LDAPConnection conn,
java.lang.String dn,
java.lang.Object certObj)
throws ELdapException
publish in interface ILdapPublisherconn - the LDAP connectiondn - dn of the entry to publish the certificatecertObj - the certificate object.ELdapException - publish failed.public void unpublish(netscape.ldap.LDAPConnection conn,
java.lang.String dn,
java.lang.Object certObj)
throws ELdapException
unpublish in interface ILdapPublisherconn - the Ldap connection
(null for non-LDAP publishing)dn - dn of the ldap entry to unpublish cert
(null for non-LDAP publishing)certObj - object to unpublish
(java.security.cert.X509Certificate)ELdapException - unpublish failed.public netscape.ldap.LDAPAttribute getModificationAttribute(netscape.ldap.LDAPAttribute attr,
byte[] bval)
public static boolean ByteValueExists(netscape.ldap.LDAPAttribute attr,
byte[] bval)
public static boolean StringValueExists(netscape.ldap.LDAPAttribute attr,
java.lang.String sval)