public final class ServerCredentialCallback extends AbstractCredentialCallback
null
is set, and
authentication may fail. If an unsupported credential type is set, an exception is thrown.Constructor and Description |
---|
ServerCredentialCallback(Class<? extends Credential> credentialType)
Construct a new instance which accepts any algorithm name.
|
ServerCredentialCallback(Class<? extends Credential> credentialType,
String algorithm)
Construct a new instance.
|
ServerCredentialCallback(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, setCredential
public ServerCredentialCallback(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 use or null
for no parameterspublic ServerCredentialCallback(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 ServerCredentialCallback(Class<? extends Credential> credentialType)
credentialType
- the desired credential type (must not be null
)public boolean isOptional()
ExtendedCallback
true
if the callback is optional, false
if it is mandatoryCopyright © 2020 JBoss by Red Hat. All rights reserved.