com.netscape.cms.profile.output
Class nsNKeyOutput

java.lang.Object
  extended by com.netscape.cms.profile.output.EnrollOutput
      extended by com.netscape.cms.profile.output.nsNKeyOutput
All Implemented Interfaces:
IProfileOutput, IConfigTemplate

public class nsNKeyOutput
extends EnrollOutput
implements IProfileOutput

This class implements the output plugin that outputs DER for the issued certificate for token keys

Version:
$Revision: 1211 $, $Date: 2010-08-18 10:15:37 -0700 (Wed, 18 Aug 2010) $

Field Summary
static java.lang.String VAL_DER
           
 
Fields inherited from class com.netscape.cms.profile.output.EnrollOutput
mConfigNames
 
Constructor Summary
nsNKeyOutput()
           
 
Method Summary
 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.
 java.lang.String getValue(java.lang.String name, java.util.Locale locale, IRequest request)
          Retrieves the value of the given value parameter by name.
 IDescriptor getValueDescriptor(java.util.Locale locale, java.lang.String name)
          Retrieves the descriptor of the given value parameter by name.
 void init(IProfile profile, IConfigStore config)
          Initializes this default policy.
 void populate(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.profile.IProfileOutput
getConfigStore, getValueNames, setValue
 
Methods inherited from interface com.netscape.certsrv.property.IConfigTemplate
getConfig, getConfigDescriptor, getConfigNames, setConfig
 

Field Detail

VAL_DER

public static final java.lang.String VAL_DER
See Also:
Constant Field Values
Constructor Detail

nsNKeyOutput

public nsNKeyOutput()
Method Detail

init

public void init(IProfile profile,
                 IConfigStore config)
          throws EProfileException
Initializes this default policy.

Specified by:
init in interface IProfileOutput
Overrides:
init in class EnrollOutput
Parameters:
profile - owner of this policy
config - 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:
getName in interface IProfileOutput
Specified by:
getName in class EnrollOutput
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:
getText in interface IProfileOutput
Specified by:
getText in class EnrollOutput
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:
populate in interface IProfileOutput
Specified by:
populate in class EnrollOutput
Parameters:
ctx - profile context
request - 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:
getValueDescriptor in interface IProfileOutput
Specified by:
getValueDescriptor in class EnrollOutput
Parameters:
locale - user locale
name - property name
Returns:
property descriptor

getValue

public java.lang.String getValue(java.lang.String name,
                                 java.util.Locale locale,
                                 IRequest request)
                          throws EProfileException
Description copied from interface: IProfileOutput
Retrieves the value of the given value parameter by name.

Specified by:
getValue in interface IProfileOutput
Overrides:
getValue in class EnrollOutput
Parameters:
name - property name
locale - user locale
request - request
Returns:
property value
Throws:
EProfileException - failed to retrieve value