public class FileBasedPublisher extends java.lang.Object implements ILdapPublisher, IExtendedPluginInfo
| Modifier and Type | Field and Description |
|---|---|
protected int |
maxAge |
protected int |
maxFullCRLs |
protected boolean |
mB64Attr |
protected boolean |
mDerAttr |
protected boolean |
mLatestCRL |
protected java.lang.String |
mLinkExt |
protected java.lang.String |
mTimeStamp |
protected boolean |
mZipCRL |
protected int |
mZipLevel |
PROP_ENABLE, PROP_IMPLNAME, PROP_PREDICATEHELP_TEXT, HELP_TOKEN| Constructor and Description |
|---|
FileBasedPublisher() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
getB64Attr()
returns the B64 attribute where it'll be published.
|
IConfigStore |
getConfigStore()
Return config store.
|
java.io.File[] |
getCRLFiles(java.io.File dir)
Gets all the CRLS (full and delta) in the directory
These match
|
java.util.Vector<java.lang.String> |
getDefaultParams()
Returns the initial default parameters.
|
boolean |
getDerAttr()
returns the Der attribute where it'll be published.
|
java.lang.String |
getDescription()
Returns the description of the ldap publisher.
|
java.lang.String[] |
getExtendedPluginInfo(java.util.Locale locale)
This method returns an array of strings.
|
java.io.File[] |
getFullCRLFiles(java.io.File dir)
Gets the full CRLs in the directory
* These match
|
java.lang.String |
getImplName()
Returns the implementation name.
|
java.util.Vector<java.lang.String> |
getInstanceParams()
Returns the current instance parameters.
|
void |
init(IConfigStore config)
Initializes this plugin.
|
void |
publish(netscape.ldap.LDAPConnection conn,
java.lang.String dn,
java.lang.Object object)
Publishes a object to the ldap directory.
|
void |
purgeExcessFiles() |
void |
purgeExpiredFiles() |
void |
setIssuingPointId(java.lang.String crlIssuingPointId) |
void |
unpublish(netscape.ldap.LDAPConnection conn,
java.lang.String dn,
java.lang.Object object)
Unpublishes a object to the ldap directory.
|
protected boolean mDerAttr
protected boolean mB64Attr
protected boolean mLatestCRL
protected boolean mZipCRL
protected java.lang.String mTimeStamp
protected java.lang.String mLinkExt
protected int mZipLevel
protected int maxAge
protected int maxFullCRLs
public void setIssuingPointId(java.lang.String crlIssuingPointId)
public java.lang.String getImplName()
getImplName in interface ILdapPublisherpublic java.lang.String getDescription()
getDescription in interface ILdapPublisherpublic java.lang.String[] getExtendedPluginInfo(java.util.Locale locale)
IExtendedPluginInfogetExtendedPluginInfo in interface IExtendedPluginInfopublic java.util.Vector<java.lang.String> getInstanceParams()
getInstanceParams in interface ILdapPublisherpublic java.util.Vector<java.lang.String> getDefaultParams()
getDefaultParams in interface ILdapPublisherpublic void init(IConfigStore config)
init in interface ILdapPluginconfig - the configuration store to initialize from.public IConfigStore getConfigStore()
ILdapPlugingetConfigStore in interface ILdapPluginpublic void publish(netscape.ldap.LDAPConnection conn,
java.lang.String dn,
java.lang.Object object)
throws ELdapException
publish in interface ILdapPublisherconn - a Ldap connection
(null if LDAP publishing is not enabled)dn - dn of the ldap entry to publish cert
(null if LDAP publishing is not enabled)object - object to publish
(java.security.cert.X509Certificate or,
java.security.cert.X509CRL)ELdapException - publish failed.public java.io.File[] getCRLFiles(java.io.File dir)
dir - public java.io.File[] getFullCRLFiles(java.io.File dir)
dir - public void purgeExpiredFiles()
public void purgeExcessFiles()
public void unpublish(netscape.ldap.LDAPConnection conn,
java.lang.String dn,
java.lang.Object object)
throws ELdapException
unpublish in interface ILdapPublisherconn - the Ldap connection
(null if LDAP publishing is not enabled)dn - dn of the ldap entry to unpublish cert
(null if LDAP publishing is not enabled)object - object to unpublish
(java.security.cert.X509Certificate)ELdapException - unpublish failed.public boolean getDerAttr()
public boolean getB64Attr()