
public final class CredentialCallback extends AbstractCredentialCallback
This callback must be handled if a default credential was not supplied. The callback
handler is expected to provide a credential to this callback if one is not present. If no credential is available,
null is set, and authentication may fail. If an unsupported credential type is set, an exception is thrown.
| Constructor and Description |
|---|
CredentialCallback(Class<? extends Credential> credentialType)
Construct a new instance which accepts any algorithm name or parameters.
|
CredentialCallback(Class<? extends Credential> credentialType,
String algorithm)
Construct a new instance which accepts any parameters.
|
CredentialCallback(Class<? extends Credential> credentialType,
String algorithm,
AlgorithmParameterSpec parameterSpec)
Construct a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isOptional()
Determine if this callback is optional.
|
applyToCredential, applyToCredential, applyToCredential, getAlgorithm, getCredential, getCredential, getCredential, getCredential, getCredentialType, getParameterSpec, isCredentialSupported, isCredentialTypeSupported, isCredentialTypeSupported, isCredentialTypeSupported, needsInformation, setCredentialpublic CredentialCallback(Class<? extends Credential> credentialType, String algorithm, AlgorithmParameterSpec parameterSpec)
credentialType - the desired credential type (must not be null)algorithm - the algorithm name, or null if any algorithm is suitable or the credential
type does not use algorithm namesparameterSpec - the parameters to match, or null if any parameters are acceptable or the credential
type does not support parameterspublic CredentialCallback(Class<? extends Credential> credentialType, String algorithm)
credentialType - the desired credential type (must not be null)algorithm - the algorithm name, or null if any algorithm is suitable or the credential
type does not use algorithm namespublic CredentialCallback(Class<? extends Credential> credentialType)
credentialType - the desired credential type (must not be null)public boolean isOptional()
ExtendedCallbacktrue if the callback is optional, false if it is mandatoryCopyright © 2020 JBoss by Red Hat. All rights reserved.