Class PublicKeyCredential
java.lang.Object
org.wildfly.security.credential.PublicKeyCredential
- All Implemented Interfaces:
Cloneable, AlgorithmCredential, Credential
A public key credential.
-
Field Summary
Fields inherited from interface Credential
NO_CREDENTIALS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()Creates and returns a copy of thisCredential.booleanGet the public key algorithm.<P extends AlgorithmParameterSpec>
PgetParameters(Class<P> paramSpecClass) Get the algorithm parameters of the given type from this credential.Get the public key.inthashCode()booleanDetermine whether the other credential's parameters are implied by this one.booleansupportsParameters(Class<? extends AlgorithmParameterSpec> paramSpecClass) Determine whether this credential instance supports the given algorithm parameter type.Methods inherited from class Object
finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface AlgorithmCredential
getParameters, impliesParameters, matches, matches, matches, supportsParametersMethods inherited from interface Credential
canVerify, canVerify, castAndApply, castAndApply, castAndApply, castAs, castAs, castAs, verify, verify
-
Constructor Details
-
PublicKeyCredential
Construct a new instance.- Parameters:
publicKey- the public key (may not benull)
-
-
Method Details
-
getPublicKey
-
supportsParameters
Description copied from interface:AlgorithmCredentialDetermine whether this credential instance supports the given algorithm parameter type.- Specified by:
supportsParametersin interfaceAlgorithmCredential- Parameters:
paramSpecClass- the parameter specification class (must not benull)- Returns:
trueif the parameter type is supported,falseotherwise
-
getParameters
Description copied from interface:AlgorithmCredentialGet the algorithm parameters of the given type from this credential.- Specified by:
getParametersin interfaceAlgorithmCredential- Parameters:
paramSpecClass- the parameter specification class (must not benull)- Returns:
- the parameter specification, or
nullif no parameters are present or available or the given type was not supported by this credential
-
impliesSameParameters
Description copied from interface:AlgorithmCredentialDetermine whether the other credential's parameters are implied by this one.- Specified by:
impliesSameParametersin interfaceAlgorithmCredential- Parameters:
other- the other credential (must not benull)- Returns:
trueif the credentials have matching parameters,falseotherwise
-
getAlgorithm
Get the public key algorithm.- Specified by:
getAlgorithmin interfaceAlgorithmCredential- Returns:
- the public key algorithm name
-
clone
Description copied from interface:AlgorithmCredentialCreates and returns a copy of thisCredential.- Specified by:
clonein interfaceAlgorithmCredential- Specified by:
clonein interfaceCredential- Overrides:
clonein classObject- Returns:
- a copy of this
Credential.
-
hashCode
-
equals
-