public class LdapCrlPublisher 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_CACERT_ATTR |
static java.lang.String |
LDAP_CRL_ATTR |
static java.lang.String |
LDAP_CRL_OBJECTCLASS |
protected IConfigStore |
mConfig |
protected java.lang.String |
mCrlAttr |
protected java.lang.String |
mCrlObjectClass |
protected java.lang.String |
mObjAdded |
protected java.lang.String |
mObjDeleted |
PROP_ENABLE, PROP_IMPLNAME, PROP_PREDICATE
HELP_TEXT, HELP_TOKEN
Constructor and Description |
---|
LdapCrlPublisher()
constructs ldap crl publisher with default values
|
LdapCrlPublisher(java.lang.String crlAttr,
java.lang.String crlObjectClass) |
Modifier and Type | Method and Description |
---|---|
IConfigStore |
getConfigStore()
Return config store.
|
java.lang.String |
getCRLObjectclass()
Gets the CA object class to convert to.
|
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.
|
void |
init(IConfigStore config)
Initialize from config store.
|
void |
publish(netscape.ldap.LDAPConnection conn,
java.lang.String dn,
java.lang.Object crlObj)
Replaces the CRL in the certificateRevocationList attribute.
|
void |
unpublish(netscape.ldap.LDAPConnection conn,
java.lang.String dn,
java.lang.Object crlObj)
There shouldn't be a need to call this.
|
protected IConfigStore mConfig
public static final java.lang.String LDAP_CACERT_ATTR
public static final java.lang.String LDAP_ARL_ATTR
public static final java.lang.String LDAP_CRL_ATTR
public static final java.lang.String LDAP_CRL_OBJECTCLASS
protected java.lang.String mCrlAttr
protected java.lang.String mCrlObjectClass
protected java.lang.String mObjAdded
protected java.lang.String mObjDeleted
public LdapCrlPublisher()
public LdapCrlPublisher(java.lang.String crlAttr, java.lang.String crlObjectClass)
public java.lang.String getImplName()
ILdapPublisher
getImplName
in interface ILdapPublisher
public java.lang.String getDescription()
ILdapPublisher
getDescription
in interface ILdapPublisher
public java.lang.String[] getExtendedPluginInfo(java.util.Locale locale)
IExtendedPluginInfo
getExtendedPluginInfo
in interface IExtendedPluginInfo
public java.util.Vector getInstanceParams()
ILdapPublisher
getInstanceParams
in interface ILdapPublisher
public java.util.Vector 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 getCRLObjectclass()
public void publish(netscape.ldap.LDAPConnection conn, java.lang.String dn, java.lang.Object crlObj) throws ELdapException
publish
in interface ILdapPublisher
conn
- a Ldap connection
(null for non-LDAP publishing)dn
- dn of the ldap entry to publish cert
(null for non-LDAP publishing)crlObj
- object to publish
(java.security.cert.X509Certificate or,
java.security.cert.X509CRL)ELdapException
- publish failed.public void unpublish(netscape.ldap.LDAPConnection conn, java.lang.String dn, java.lang.Object crlObj) 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)crlObj
- object to unpublish
(java.security.cert.X509Certificate)ELdapException
- unpublish failed.