com.netscape.cms.profile.input
Class FileSigningInput

java.lang.Object
  extended by com.netscape.cms.profile.input.EnrollInput
      extended by com.netscape.cms.profile.input.FileSigningInput
All Implemented Interfaces:
IProfileInput, IConfigTemplate

public class FileSigningInput
extends EnrollInput
implements IProfileInput

This class implements the image input that collects a picture.

Version:
$Revision: 1516 $, $Date: 2010-11-16 17:25:33 -0800 (Tue, 16 Nov 2010) $

Field Summary
static java.lang.String DIGEST
           
static java.lang.String DIGEST_TYPE
           
static java.lang.String SIZE
           
static java.lang.String TEXT
           
static java.lang.String URL
           
 
Fields inherited from class com.netscape.cms.profile.input.EnrollInput
mConfig, mConfigNames, mProfile, mSignedAuditLogger, mValueNames
 
Constructor Summary
FileSigningInput()
           
 
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.
 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.
 java.lang.String toHexString(byte[] data)
           
 
Methods inherited from class com.netscape.cms.profile.input.EnrollInput
addConfigName, addValueName, audit, auditSubjectID, getConfig, getConfigDescriptor, getConfigNames, getConfigStore, getDefaultConfig, getLocale, getValue, getValueNames, setConfig, setValue, verifyPOP
 
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.IProfileInput
getConfigStore, getValue, getValueNames, setValue
 
Methods inherited from interface com.netscape.certsrv.property.IConfigTemplate
getConfig, getConfigDescriptor, getConfigNames, setConfig
 

Field Detail

URL

public static final java.lang.String URL
See Also:
Constant Field Values

TEXT

public static final java.lang.String TEXT
See Also:
Constant Field Values

SIZE

public static final java.lang.String SIZE
See Also:
Constant Field Values

DIGEST

public static final java.lang.String DIGEST
See Also:
Constant Field Values

DIGEST_TYPE

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

FileSigningInput

public FileSigningInput()
Method Detail

init

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

Specified by:
init in interface IProfileInput
Overrides:
init in class EnrollInput
Parameters:
profile - owner of this input
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 IProfileInput
Specified by:
getName in class EnrollInput
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 interface IProfileInput
Specified by:
getText in class EnrollInput
Parameters:
locale - user locale
Returns:
localized input description

toHexString

public java.lang.String toHexString(byte[] data)

populate

public void populate(IProfileContext ctx,
                     IRequest request)
              throws EProfileException
Populates the request with this policy default.

Specified by:
populate in interface IProfileInput
Specified by:
populate in class EnrollInput
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 IProfileInput
Specified by:
getValueDescriptor in class EnrollInput
Parameters:
locale - user locale
name - property name
Returns:
descriptor of the property