public class LdapCaCertPublisher extends java.lang.Object implements ILdapPublisher, IExtendedPluginInfo
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
LDAP_ARL_ATTR |
static java.lang.String |
LDAP_CA_OBJECTCLASS |
static java.lang.String |
LDAP_CACERT_ATTR |
static java.lang.String |
LDAP_CRL_ATTR |
protected java.lang.String |
mCaCertAttr |
protected java.lang.String |
mCaObjectclass |
protected IConfigStore |
mConfig |
protected java.lang.String |
mObjAdded |
protected java.lang.String |
mObjDeleted |
PROP_ENABLE, PROP_IMPLNAME, PROP_PREDICATE
HELP_TEXT, HELP_TOKEN
Constructor and Description |
---|
LdapCaCertPublisher()
constructor constructs default values.
|
LdapCaCertPublisher(java.lang.String caCertAttr,
java.lang.String caObjectclass) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCaCertAttrName()
returns the ca cert attribute where it'll be published.
|
java.lang.String |
getCAObjectclass()
Gets the CA object class to convert to.
|
IConfigStore |
getConfigStore()
Return config store.
|
java.util.Vector<java.lang.String> |
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<java.lang.String> |
getInstanceParams()
Returns the current instance parameters.
|
void |
init(IConfigStore config)
Initialize from config store.
|
void |
publish(netscape.ldap.LDAPConnection conn,
java.lang.String dn,
java.lang.Object certObj)
publish a CA certificate
Adds the cert to the multi-valued certificate attribute as a
DER encoded binary blob.
|
void |
unpublish(netscape.ldap.LDAPConnection conn,
java.lang.String dn,
java.lang.Object certObj)
deletes the certificate from CA's certificate attribute.
|
public static final java.lang.String LDAP_CACERT_ATTR
public static final java.lang.String LDAP_CA_OBJECTCLASS
public static final java.lang.String LDAP_ARL_ATTR
public static final java.lang.String LDAP_CRL_ATTR
protected java.lang.String mCaCertAttr
protected java.lang.String mCaObjectclass
protected java.lang.String mObjAdded
protected java.lang.String mObjDeleted
protected IConfigStore mConfig
public LdapCaCertPublisher()
public LdapCaCertPublisher(java.lang.String caCertAttr, java.lang.String caObjectclass)
public java.lang.String[] getExtendedPluginInfo(java.util.Locale locale)
IExtendedPluginInfo
getExtendedPluginInfo
in interface IExtendedPluginInfo
public java.lang.String getImplName()
ILdapPublisher
getImplName
in interface ILdapPublisher
public java.lang.String getDescription()
ILdapPublisher
getDescription
in interface ILdapPublisher
public java.util.Vector<java.lang.String> getInstanceParams()
ILdapPublisher
getInstanceParams
in interface ILdapPublisher
public java.util.Vector<java.lang.String> getDefaultParams()
ILdapPublisher
getDefaultParams
in interface ILdapPublisher
public IConfigStore getConfigStore()
ILdapPlugin
getConfigStore
in interface ILdapPlugin
public void init(IConfigStore config) throws EBaseException
ILdapPlugin
init
in interface ILdapPlugin
config
- the configuration store to initialize from.ELdapException
- initialization failed due to Ldap error.EBaseException
- initialization failed.public java.lang.String getCAObjectclass()
public java.lang.String getCaCertAttrName()
public void publish(netscape.ldap.LDAPConnection conn, java.lang.String dn, java.lang.Object certObj) throws ELdapException
publish
in interface ILdapPublisher
conn
- 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 ILdapPublisher
conn
- 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.