Package com.netscape.cms.profile.output
Class CertOutput
- java.lang.Object
-
- com.netscape.cms.profile.output.EnrollOutput
-
- com.netscape.cms.profile.output.CertOutput
-
- All Implemented Interfaces:
IProfileOutput,IConfigTemplate
public class CertOutput extends EnrollOutput implements IProfileOutput
This class implements the pretty print certificate output that displays the issued certificate in a pretty print format.- Version:
- $Revision$, $Date$
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringVAL_B64_CERTstatic java.lang.StringVAL_PRETTY_CERT-
Fields inherited from class com.netscape.cms.profile.output.EnrollOutput
mConfigNames
-
-
Constructor Summary
Constructors Constructor Description CertOutput()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetName(java.util.Locale locale)Retrieves the localizable name of this policy.java.lang.StringgetText(java.util.Locale locale)Retrieves the localizable description of this policy.java.lang.StringgetValue(java.lang.String name, java.util.Locale locale, IRequest request)Retrieves the value of the given value parameter by name.IDescriptorgetValueDescriptor(java.util.Locale locale, java.lang.String name)Retrieves the descriptor of the given value parameter by name.voidinit(IProfile profile, IConfigStore config)Initializes this default policy.voidpopulate(IProfileContext ctx, IRequest request)Populates the request with this policy default.-
Methods inherited from class com.netscape.cms.profile.output.EnrollOutput
addValueName, getConfig, getConfigDescriptor, getConfigNames, getConfigStore, getDefaultConfig, getValueNames, setConfig, setValue
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.netscape.certsrv.property.IConfigTemplate
getConfig, getConfigDescriptor, getConfigNames, setConfig
-
Methods inherited from interface com.netscape.certsrv.profile.IProfileOutput
getConfigStore, getValueNames, setValue
-
-
-
-
Field Detail
-
VAL_PRETTY_CERT
public static final java.lang.String VAL_PRETTY_CERT
- See Also:
- Constant Field Values
-
VAL_B64_CERT
public static final java.lang.String VAL_B64_CERT
- See Also:
- Constant Field Values
-
-
Method Detail
-
init
public void init(IProfile profile, IConfigStore config) throws EProfileException
Initializes this default policy.- Specified by:
initin interfaceIProfileOutput- Overrides:
initin classEnrollOutput- Parameters:
profile- owner of this policyconfig- configuration store- Throws:
EProfileException- failed to initialize
-
getName
public java.lang.String getName(java.util.Locale locale)
Retrieves the localizable name of this policy.- Specified by:
getNamein interfaceIProfileOutput- Specified by:
getNamein classEnrollOutput- Parameters:
locale- user locale- Returns:
- output policy name
-
getText
public java.lang.String getText(java.util.Locale locale)
Retrieves the localizable description of this policy.- Specified by:
getTextin interfaceIProfileOutput- Specified by:
getTextin classEnrollOutput- Parameters:
locale- user locale- Returns:
- output policy description
-
populate
public void populate(IProfileContext ctx, IRequest request) throws EProfileException
Populates the request with this policy default.- Specified by:
populatein interfaceIProfileOutput- Specified by:
populatein classEnrollOutput- Parameters:
ctx- profile contextrequest- request- Throws:
EProfileException- failed to populate
-
getValueDescriptor
public IDescriptor getValueDescriptor(java.util.Locale locale, java.lang.String name)
Retrieves the descriptor of the given value parameter by name.- Specified by:
getValueDescriptorin interfaceIProfileOutput- Specified by:
getValueDescriptorin classEnrollOutput- Parameters:
locale- user localename- property name- Returns:
- property descriptor
-
getValue
public java.lang.String getValue(java.lang.String name, java.util.Locale locale, IRequest request) throws EProfileExceptionDescription copied from interface:IProfileOutputRetrieves the value of the given value parameter by name.- Specified by:
getValuein interfaceIProfileOutput- Overrides:
getValuein classEnrollOutput- Parameters:
name- property namelocale- user localerequest- request- Returns:
- property value
- Throws:
EProfileException- failed to retrieve value
-
-