| java.lang.Object org.ejbca.core.model.UpgradeableDataHashMap org.ejbca.core.model.ca.publisher.BasePublisher
All known Subclasses: org.ejbca.core.model.ca.publisher.LdapPublisher, org.ejbca.core.model.ca.publisher.CustomPublisherContainer,
BasePublisher | abstract public class BasePublisher extends UpgradeableDataHashMap implements Serializable,Cloneable(Code) | | BasePublisher is a basic class that should be inherited by all types
of publishers in the system.
version: $Id: BasePublisher.java,v 1.5 2007/09/12 14:22:46 anatom Exp $ |
Method Summary | |
abstract public Object | clone() | public String | getDescription() | abstract public float | getLatestVersion() | abstract public void | revokeCertificate(Admin admin, Certificate cert, String username, int reason) Revokes a certificate (already revoked by the CA), the Publisher decides what to do, if
anything. | public void | setDescription(String description) Sets the description. | abstract public boolean | storeCRL(Admin admin, byte[] incrl, String cafp, int number) Published a CRL to a CRL store.
Parameters: incrl - The DER coded CRL to be stored. Parameters: chainfp - Fingerprint (hex) of the CAs certificate. Parameters: number - CRL number. | abstract public boolean | storeCertificate(Admin admin, Certificate incert, String username, String password, String cafp, int status, int type, long revocationDate, int revocationReason, ExtendedInformation extendedinformation) Publishes a certificate to a certificate store. | abstract public void | testConnection(Admin admin) Method used to test the connection to a publisher. | public void | upgrade() |
BasePublisher | public BasePublisher()(Code) | | Creates a new instance of CertificateProfile
|
getDescription | public String getDescription()(Code) | | Returns the description of publisher
|
getLatestVersion | abstract public float getLatestVersion()(Code) | | |
revokeCertificate | abstract public void revokeCertificate(Admin admin, Certificate cert, String username, int reason) throws PublisherException(Code) | | Revokes a certificate (already revoked by the CA), the Publisher decides what to do, if
anything.
Parameters: cert - The DER coded Certificate that has been revoked. Parameters: username - the username of the user holding the certificate Parameters: reason - revocation reason, from RevokedCertInfo.XX throws: EJBException - if a communication or other error occurs. |
setDescription | public void setDescription(String description)(Code) | | Sets the description.
|
storeCRL | abstract public boolean storeCRL(Admin admin, byte[] incrl, String cafp, int number) throws PublisherException(Code) | | Published a CRL to a CRL store.
Parameters: incrl - The DER coded CRL to be stored. Parameters: chainfp - Fingerprint (hex) of the CAs certificate. Parameters: number - CRL number. true if storage was successful. throws: EJBException - if a communication or other error occurs. |
storeCertificate | abstract public boolean storeCertificate(Admin admin, Certificate incert, String username, String password, String cafp, int status, int type, long revocationDate, int revocationReason, ExtendedInformation extendedinformation) throws PublisherException(Code) | | Publishes a certificate to a certificate store. If status is not active for the certificate, the publisher may choose
to not publish the certificate, for instance if revoke removes a certificate from LDAP,
re-publishing the certificate should not add it again if the status is revoked.
Parameters: incert - The certificate to be stored. Parameters: chainfp - Fingerprint (hex) of the CAs certificate. Parameters: username - Username of end entity owning the certificate. Parameters: password - Password given to the user, may be null if no password exists for the user. Parameters: status - Status of the certificate (from CertificateData). Parameters: type - Type of certificate (from CertificateDataBean). Parameters: revocationDate - Date for revocation (of revoked), like System.currentTimeMillis(), or -1 if not revoked. Parameters: revocationReason - reason for revocation from RevokedCertInfo, RevokedCertInfo.NOT_REVOKED if not revoked. Parameters: extendedinformation - contains extended information about the user, like picture, is null if no extendedinformation exists about the user. true if storage was successful. throws: EJBException - if a communication or other error occurs. |
upgrade | public void upgrade()(Code) | | |
|
|