public interface RsaKeyProvider extends KeyProvider<RsaKeyMetadata>
| Modifier and Type | Method and Description |
|---|---|
X509Certificate |
getCertificate(String kid)
Return the certificate for the specified kid, or
null if the kid is unknown. |
PrivateKey |
getPrivateKey()
Return the private key for the active keypair, or
null if no active key is available. |
PublicKey |
getPublicKey(String kid)
Return the public key for the specified kid, or
null if the kid is unknown. |
default org.openfact.jose.jws.AlgorithmType |
getType()
Returns the algorithm type the keys can be used for
|
getKeyMetadata, getKiddefault org.openfact.jose.jws.AlgorithmType getType()
KeyProvidergetType in interface KeyProvider<RsaKeyMetadata>PrivateKey getPrivateKey()
null if no active key is available.PublicKey getPublicKey(String kid)
null if the kid is unknown.kid - X509Certificate getCertificate(String kid)
null if the kid is unknown.kid - Copyright © 2017. All rights reserved.