|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.netscape.cms.publish.publishers.LdapCertSubjPublisher
public class LdapCertSubjPublisher
Interface for mapping a X509 certificate to a LDAP entry Publishes a certificate as binary and its subject name. there is one subject name value for each certificate.
| Field Summary | |
|---|---|
static java.lang.String |
LDAP_CERTSUBJNAME_ATTR
|
protected java.lang.String |
mCertAttr
|
protected IConfigStore |
mConfig
|
protected java.lang.String |
mSubjNameAttr
|
| Fields inherited from interface com.netscape.certsrv.publish.ILdapPublisher |
|---|
PROP_ENABLE, PROP_IMPLNAME, PROP_PREDICATE |
| Constructor Summary | |
|---|---|
LdapCertSubjPublisher()
constructor using default certificate subject name and attribute for publishing subject name. |
|
LdapCertSubjPublisher(java.lang.String certAttr,
java.lang.String subjNameAttr)
constrcutor using specified certificate attribute and certificate subject name attribute. |
|
| Method Summary | |
|---|---|
java.lang.String |
getCertAttr()
|
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 |
getImplName()
Returns the implementation name. |
java.util.Vector |
getInstanceParams()
Returns the current instance parameters. |
java.lang.String |
getSubjNameAttr()
|
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. |
void |
setCertAttr(java.lang.String certAttr)
|
void |
setSubjNameAttr(java.lang.String subjNameAttr)
|
void |
unpublish(netscape.ldap.LDAPConnection conn,
java.lang.String dn,
java.lang.Object certObj)
deletes the certificate from the list of certificates. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String LDAP_CERTSUBJNAME_ATTR
protected java.lang.String mCertAttr
protected java.lang.String mSubjNameAttr
protected IConfigStore mConfig
| Constructor Detail |
|---|
public LdapCertSubjPublisher()
public LdapCertSubjPublisher(java.lang.String certAttr,
java.lang.String subjNameAttr)
| Method Detail |
|---|
public java.lang.String getImplName()
ILdapPublisher
getImplName in interface ILdapPublisherpublic java.lang.String getDescription()
ILdapPublisher
getDescription in interface ILdapPublisherpublic java.util.Vector getInstanceParams()
ILdapPublisher
getInstanceParams in interface ILdapPublisherpublic java.util.Vector getDefaultParams()
ILdapPublisher
getDefaultParams in interface ILdapPublisherpublic IConfigStore getConfigStore()
ILdapPlugin
getConfigStore in interface ILdapPlugin
public void init(IConfigStore config)
throws EBaseException
ILdapPlugin
init in interface ILdapPluginconfig - the configuration store to initialize from.
ELdapException - initialization failed due to Ldap error.
EBaseException - initialization failed.public java.lang.String getCertAttr()
public java.lang.String getSubjNameAttr()
public void setSubjNameAttr(java.lang.String subjNameAttr)
public void setCertAttr(java.lang.String certAttr)
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 - if cert or subject name already exists,
if cert encoding fails, if getting cert subject name fails.
Use ELdapException.getException() to find underlying exception.
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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||