public final class CapiCredentialCreatorOrRecoverer extends CapiCmpCredentialReader
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 CapiCredentialCreator class and the
CapiCredentialRecoverer 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 |
|---|
CapiCredentialCreatorOrRecoverer(SecureStringBuffer referenceNumber,
AuthorizationCode authorizationCode)
A constructor; creates a new
CapiCredentialCreatorOrRecoverer object. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getType()
Returns the type (name) of this specific credential reader.
|
setClientKeyGenParams, setForceV1KeyPaircheckPwdpublic CapiCredentialCreatorOrRecoverer(SecureStringBuffer referenceNumber, AuthorizationCode authorizationCode)
CapiCredentialCreatorOrRecoverer 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 MSCAPI. All other information is retrieved from the Security Manager and written to the MSCAPI-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