Package com.netscape.cms.listeners
Class CertificateIssuedListener
- java.lang.Object
-
- com.netscape.cms.listeners.CertificateIssuedListener
-
- All Implemented Interfaces:
IRequestListener
public class CertificateIssuedListener extends java.lang.Object implements IRequestListener
a listener for every completed enrollment requestHere is a list of available $TOKENs for email notification templates if certificate is successfully issued:
- $InstanceID
- $SerialNumber
- $HexSerialNumber
- $HttpHost
- $HttpPort
- $RequestId
- $IssuerDN
- $SubjectDN
- $NotBefore
- $NotAfter
- $SenderEmail
- $RecipientEmail
Here is a list of available $TOKENs for email notification templates if certificate request is rejected:
- $RequestId
- $InstanceID
- Version:
- $Revision$, $Date$
-
-
Field Summary
Fields Modifier and Type Field Description static org.slf4j.Loggerloggerprotected static java.lang.StringPROP_CERT_ISSUED_SUBSTOREprotected static java.lang.StringPROP_EMAIL_SUBJECTstatic java.lang.StringPROP_EMAIL_TEMPLATEprotected static java.lang.StringPROP_ENABLEDprotected static java.lang.StringPROP_NOTIFY_SUBSTOREprotected static java.lang.StringPROP_SENDER_EMAILprotected static java.lang.StringREJECT_FILE_NAME
-
Constructor Summary
Constructors Constructor Description CertificateIssuedListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(IRequest r)Accepts request.voidinit(ISubsystem sub, IConfigStore config)Initializes request listener for the specific subsystem and configuration store.voidset(java.lang.String name, java.lang.String val)sets the configurable parameters
-
-
-
Field Detail
-
logger
public static org.slf4j.Logger logger
-
PROP_CERT_ISSUED_SUBSTORE
protected static final java.lang.String PROP_CERT_ISSUED_SUBSTORE
- See Also:
- Constant Field Values
-
PROP_ENABLED
protected static final java.lang.String PROP_ENABLED
- See Also:
- Constant Field Values
-
PROP_NOTIFY_SUBSTORE
protected static final java.lang.String PROP_NOTIFY_SUBSTORE
- See Also:
- Constant Field Values
-
PROP_SENDER_EMAIL
protected static final java.lang.String PROP_SENDER_EMAIL
- See Also:
- Constant Field Values
-
PROP_EMAIL_SUBJECT
protected static final java.lang.String PROP_EMAIL_SUBJECT
- See Also:
- Constant Field Values
-
PROP_EMAIL_TEMPLATE
public static final java.lang.String PROP_EMAIL_TEMPLATE
- See Also:
- Constant Field Values
-
REJECT_FILE_NAME
protected static final java.lang.String REJECT_FILE_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
init
public void init(ISubsystem sub, IConfigStore config) throws EListenersException, EPropertyNotFound, EBaseException
Description copied from interface:IRequestListenerInitializes request listener for the specific subsystem and configuration store.- Specified by:
initin interfaceIRequestListener- Parameters:
sub- subsystemconfig- configuration store- Throws:
EListenersExceptionEPropertyNotFoundEBaseException
-
accept
public void accept(IRequest r)
Description copied from interface:IRequestListenerAccepts request.- Specified by:
acceptin interfaceIRequestListener- Parameters:
r- request
-
set
public void set(java.lang.String name, java.lang.String val)sets the configurable parameters- Specified by:
setin interfaceIRequestListener- Parameters:
name- attribute nameval- attribute value
-
-