public interface AsymmetricJWK
Modifier and Type | Method and Description |
---|---|
boolean |
matches(X509Certificate cert)
Returns
true if the public key material of this JWK matches
the public subject key info of the specified X.509 certificate. |
KeyPair |
toKeyPair()
Returns a Java key pair representation of this JWK.
|
PrivateKey |
toPrivateKey()
Returns a Java private key representation of this JWK.
|
PublicKey |
toPublicKey()
Returns a Java public key representation of the JWK.
|
PublicKey toPublicKey() throws JOSEException
JOSEException
- If conversion failed or is not supported.PrivateKey toPrivateKey() throws JOSEException
null
if not specified.JOSEException
- If conversion failed or is not supported.KeyPair toKeyPair() throws JOSEException
null
if
not specified.JOSEException
- If conversion failed or is not supported.boolean matches(X509Certificate cert)
true
if the public key material of this JWK matches
the public subject key info of the specified X.509 certificate.cert
- The X.509 certificate. Must not be null
.true
if the public key material of this JWK matches
the public subject key info of the specified X.509
certificate, else false
.Copyright © 2021 Connect2id Ltd.. All rights reserved.