public final class PublicKeyCredential extends Object implements AlgorithmCredential
NO_CREDENTIALS| Constructor and Description |
|---|
PublicKeyCredential(PublicKey publicKey)
Construct a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
PublicKeyCredential |
clone()
Creates and returns a copy of this
Credential. |
boolean |
equals(Object obj) |
String |
getAlgorithm()
Get the public key algorithm.
|
<P extends AlgorithmParameterSpec> |
getParameters(Class<P> paramSpecClass)
Get the algorithm parameters of the given type from this credential.
|
PublicKey |
getPublicKey()
Get the public key.
|
int |
hashCode() |
boolean |
impliesSameParameters(AlgorithmCredential other)
Determine whether the other credential's parameters are implied by this one.
|
boolean |
supportsParameters(Class<? extends AlgorithmParameterSpec> paramSpecClass)
Determine whether this credential instance supports the given algorithm parameter type.
|
finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetParameters, impliesParameters, matches, matches, matches, supportsParameterscanVerify, canVerify, castAndApply, castAndApply, castAndApply, castAs, castAs, castAs, fromKeyStoreEntry, verify, verifypublic PublicKeyCredential(PublicKey publicKey)
publicKey - the public key (may not be null)public PublicKey getPublicKey()
null)public boolean supportsParameters(Class<? extends AlgorithmParameterSpec> paramSpecClass)
AlgorithmCredentialsupportsParameters in interface AlgorithmCredentialparamSpecClass - the parameter specification class (must not be null)true if the parameter type is supported, false otherwisepublic <P extends AlgorithmParameterSpec> P getParameters(Class<P> paramSpecClass)
AlgorithmCredentialgetParameters in interface AlgorithmCredentialparamSpecClass - 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 credentialpublic boolean impliesSameParameters(AlgorithmCredential other)
AlgorithmCredentialimpliesSameParameters in interface AlgorithmCredentialother - the other credential (must not be null)true if the credentials have matching parameters, false otherwisepublic String getAlgorithm()
getAlgorithm in interface AlgorithmCredentialpublic PublicKeyCredential clone()
AlgorithmCredentialCredential.clone in interface AlgorithmCredentialclone in interface Credentialclone in class ObjectCredential.Copyright © 2017 JBoss by Red Hat. All rights reserved.