Package com.netscape.cms.profile.input
Class nsHKeyCertReqInput
- java.lang.Object
-
- com.netscape.cms.profile.common.ProfileInput
-
- com.netscape.cms.profile.input.EnrollInput
-
- com.netscape.cms.profile.input.nsHKeyCertReqInput
-
- All Implemented Interfaces:
com.netscape.certsrv.property.IConfigTemplate
public class nsHKeyCertReqInput extends EnrollInput
This class implements the certificate request input from TPS. This input populates 2 main fields to the enrollment "page": 1/ token cuid, 2/ publickeyThis input usually is used by an enrollment profile for certificate requests coming from TPS.
- Version:
- $Revision$, $Date$
-
-
Field Summary
Fields Modifier and Type Field Description static org.slf4j.Logger
logger
EnrollProfile
mEnrollProfile
static java.lang.String
VAL_PUBLIC_KEY
static java.lang.String
VAL_TOKEN_CUID
-
Fields inherited from class com.netscape.cms.profile.input.EnrollInput
mConfig, mConfigNames, mProfile, mValueNames
-
-
Constructor Summary
Constructors Constructor Description nsHKeyCertReqInput()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getName(java.util.Locale locale)
Retrieves the localizable name of this policy.java.lang.String
getText(java.util.Locale locale)
Retrieves the localizable description of this policy.com.netscape.certsrv.property.IDescriptor
getValueDescriptor(java.util.Locale locale, java.lang.String name)
Retrieves the descriptor of the given value parameter by name.void
init(Profile profile, IConfigStore config)
Initializes this default policy.void
populate(java.util.Map<java.lang.String,java.lang.String> ctx, com.netscape.certsrv.request.IRequest request)
Populates the request with this policy default.java.lang.String
toPrettyPrint(java.lang.String cuid)
-
Methods inherited from class com.netscape.cms.profile.input.EnrollInput
addConfigName, addValueName, auditSubjectID, getConfig, getConfigDescriptor, getConfigNames, getConfigStore, getDefaultConfig, getLocale, getValue, getValueNames, setConfig, setValue, verifyPOP
-
-
-
-
Field Detail
-
logger
public static org.slf4j.Logger logger
-
VAL_TOKEN_CUID
public static final java.lang.String VAL_TOKEN_CUID
- See Also:
- Constant Field Values
-
VAL_PUBLIC_KEY
public static final java.lang.String VAL_PUBLIC_KEY
- See Also:
- Constant Field Values
-
mEnrollProfile
public EnrollProfile mEnrollProfile
-
-
Method Detail
-
init
public void init(Profile profile, IConfigStore config) throws com.netscape.certsrv.profile.EProfileException
Initializes this default policy.- Overrides:
init
in classEnrollInput
- Throws:
com.netscape.certsrv.profile.EProfileException
-
getName
public java.lang.String getName(java.util.Locale locale)
Retrieves the localizable name of this policy.- Specified by:
getName
in classEnrollInput
- Parameters:
locale
- user locale- Returns:
- localized input name
-
getText
public java.lang.String getText(java.util.Locale locale)
Retrieves the localizable description of this policy.- Specified by:
getText
in classEnrollInput
- Parameters:
locale
- user locale- Returns:
- localized input description
-
toPrettyPrint
public java.lang.String toPrettyPrint(java.lang.String cuid)
-
populate
public void populate(java.util.Map<java.lang.String,java.lang.String> ctx, com.netscape.certsrv.request.IRequest request) throws java.lang.Exception
Populates the request with this policy default.- Specified by:
populate
in classEnrollInput
- Parameters:
ctx
- profile contextrequest
- request- Throws:
java.lang.Exception
- failed to populate
-
getValueDescriptor
public com.netscape.certsrv.property.IDescriptor getValueDescriptor(java.util.Locale locale, java.lang.String name)
Retrieves the descriptor of the given value parameter by name.- Specified by:
getValueDescriptor
in classEnrollInput
- Parameters:
locale
- user localename
- property name- Returns:
- descriptor of the property
-
-