public class X509GenerateCallbackHandler
extends java.lang.Object
implements javax.security.auth.callback.CallbackHandler, java.io.Serializable
| Constructor and Description |
|---|
X509GenerateCallbackHandler(boolean requestorCertificate,
boolean identityAssertion)
Class constructor.
|
X509GenerateCallbackHandler(java.util.Map<java.lang.Object,java.lang.Object> properties)
Class constructor.
|
X509GenerateCallbackHandler(java.lang.String storeRef,
java.lang.String storePath,
java.lang.String storeType,
char[] storePassword,
java.lang.String alias,
char[] keyPassword,
java.lang.String keyName,
java.util.List<java.security.cert.CertStore> certStores)
Class constructor with the specified keystore information.
|
| Modifier and Type | Method and Description |
|---|---|
void |
handle(javax.security.auth.callback.Callback[] callbacks)
Sets the necessary information to a
X509GenerateCallback object. |
public X509GenerateCallbackHandler(java.util.Map<java.lang.Object,java.lang.Object> properties)
properties - map including key-value pairspublic X509GenerateCallbackHandler(java.lang.String storeRef,
java.lang.String storePath,
java.lang.String storeType,
char[] storePassword,
java.lang.String alias,
char[] keyPassword,
java.lang.String keyName,
java.util.List<java.security.cert.CertStore> certStores)
storeRef - reference name of the keystorestorePath - file path from which the keystore is loadedstorePassword - password used to check the integrity of the
keystore or the password used to unlock the keystorestoreType - type of the keystorealias - alias namekeyPassword - password for recovering the keykeyName - name of the keycertStores - list of certificate storespublic X509GenerateCallbackHandler(boolean requestorCertificate,
boolean identityAssertion)
requestorCertificate - true if the certificate of requestor is usedidentityAssertion - true if identity assertion is usedpublic void handle(javax.security.auth.callback.Callback[] callbacks)
throws java.io.IOException,
javax.security.auth.callback.UnsupportedCallbackException
X509GenerateCallback object.handle in interface javax.security.auth.callback.CallbackHandlercallbacks - array of Callback objects provided by the
underlying security service which contains the information requested
to be retrieved or displayed.java.io.IOException - if an input or output error occurs.javax.security.auth.callback.UnsupportedCallbackException - if the implementation of this method does not support one or more
of the Callbacks specified in the callbacks parameter.CallbackHandler.handle(javax.security.auth.callback.Callback[])