
public interface AlgorithmCredential extends Credential
NO_CREDENTIALS| Modifier and Type | Method and Description |
|---|---|
AlgorithmCredential |
clone()
Creates and returns a copy of this
Credential. |
String |
getAlgorithm()
Get the algorithm name associated with this credential (will never be
null). |
default AlgorithmParameterSpec |
getParameters()
Get the default algorithm parameters of the any type from this credential.
|
default <P extends AlgorithmParameterSpec> |
getParameters(Class<P> paramSpecClass)
Get the algorithm parameters of the given type from this credential.
|
default boolean |
impliesParameters(AlgorithmParameterSpec parameterSpec)
Determine whether this credential implies the given parameters.
|
default boolean |
impliesSameParameters(AlgorithmCredential other)
Determine whether the other credential's parameters are implied by this one.
|
default boolean |
matches(AlgorithmCredential other)
Determine if this credential is the same kind of credential as the given credential.
|
default boolean |
matches(Class<? extends Credential> credentialType,
String algorithmName,
AlgorithmParameterSpec parameterSpec)
Determine if this credential matches the given criteria.
|
default boolean |
matches(Credential other)
Determine if this credential is the same kind of credential as the given credential.
|
default boolean |
supportsParameters()
Determine whether this credential instance supports any algorithm parameter type.
|
default boolean |
supportsParameters(Class<? extends AlgorithmParameterSpec> paramSpecClass)
Determine whether this credential instance supports the given algorithm parameter type.
|
canVerify, canVerify, castAndApply, castAndApply, castAndApply, castAs, castAs, castAs, fromKeyStoreEntry, verify, verifyString getAlgorithm()
null).default AlgorithmParameterSpec getParameters()
null if no parameters are present or available or the given type
was not supported by this credentialdefault <P extends AlgorithmParameterSpec> P getParameters(Class<P> paramSpecClass)
paramSpecClass - the parameter specification class (must not be null)null if no parameters are present or available or the given type
was not supported by this credentialdefault boolean supportsParameters()
true if parameters are supported, false otherwisedefault boolean supportsParameters(Class<? extends AlgorithmParameterSpec> paramSpecClass)
paramSpecClass - the parameter specification class (must not be null)true if the parameter type is supported, false otherwisedefault boolean impliesParameters(AlgorithmParameterSpec parameterSpec)
false always.parameterSpec - the parameters to test for (must not be null)true if the given parameters match this credential, false otherwisedefault boolean impliesSameParameters(AlgorithmCredential other)
other - the other credential (must not be null)true if the credentials have matching parameters, false otherwiseAlgorithmCredential clone()
Credential.clone in interface CredentialCredential.default boolean matches(Credential other)
Credentialmatches in interface Credentialother - the other credentialtrue if the credentials are of the same kind, false otherwisedefault boolean matches(AlgorithmCredential other)
Credentialmatches in interface Credentialother - the other credentialtrue if the credentials are of the same kind, false otherwisedefault boolean matches(Class<? extends Credential> credentialType, String algorithmName, AlgorithmParameterSpec parameterSpec)
Credentialmatches in interface CredentialcredentialType - the credential type class to checkalgorithmName - the name of the algorithm or null if any algorithm is acceptableparameterSpec - the parameter specification or null if any parameter specification is acceptabletrue if the credential matches the specification, false otherwiseCopyright © 2020 JBoss by Red Hat. All rights reserved.