public final class CredentialCreatorOrRecoverer extends CMPSoftwareCredentialReader
The operation to be performed (user creation or user recovery) is determined
automatically based on the user's state. This class performs the services
offered by both the CredentialCreator class and the
CredentialRecoverer class and can be used in place of either. For
additional details on user creation or user recovery, please refer to the
class documentation of the aforementioned classes.
Note: This credential reader is not supported with Security Manager version 6.0.1 and earlier; with these older versions the user's state cannot be retrieved over PKIX-CMP.
DSASignature, ECDSASignature, PKIX4Version, PKIX5Version, RSASignature| Constructor and Description |
|---|
CredentialCreatorOrRecoverer(SecureStringBuffer referenceNumber,
AuthorizationCode authorizationCode)
A constructor; creates a new
CredentialCreatorOrRecoverer
object. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getType()
Returns the type (name) of this specific credential reader.
|
setClientKeyGenerationUtilsetClientKeyGenParams, setForceV1KeyPaircheckPwdpublic CredentialCreatorOrRecoverer(SecureStringBuffer referenceNumber, AuthorizationCode authorizationCode)
CredentialCreatorOrRecoverer
object.
Using the reference number and authentication code, the user's Digital Identity is created/recovered using the PKIX-CMP protocol. Any keys that are to be client generated are generated in software. All other information is retrieved from the Security Manager and written to the software-based Digital Identity store.
referenceNumber - the reference number assigned to the user; an 8 digit integer
obtained from the Security Manager by the PKI AdministratorauthorizationCode - the authorization code assigned to the user; an alphanumeric
string (of the form ABCD-EFGH-IJKL) obtained from the Security
Manager by the PKI Administratorjava.lang.IllegalArgumentException - thrown if any of the required parameters are
nullpublic java.lang.String getType()
CredentialReadergetType in class CredentialReader