- All Superinterfaces:
AsymmetricJWK<XECPublicKey,
,XECPrivateKey> JWK
,OKPJWK<XECPublicKey,
,XECPrivateKey> X509JWK<XECPublicKey,
XECPrivateKey>
Extended Elliptic curve JSON Web Key.
An Extended Elliptic curve JWK is asymmetric.
- Since:
- 1.5
- Author:
- Jeremy Kuhn
-
Field Summary
Fields inherited from interface io.inverno.mod.security.jose.jwk.JWK
DEFAULT_THUMBPRINT_DIGEST, KEY_OP_DECRYPT, KEY_OP_DERIVE_BITS, KEY_OP_DERIVE_KEY, KEY_OP_ENCRYPT, KEY_OP_SIGN, KEY_OP_UNWRAP_KEY, KEY_OP_VERIFY, KEY_OP_WRAP_KEY, USE_ENC, USE_SIG
-
Method Summary
Methods inherited from interface io.inverno.mod.security.jose.jwk.AsymmetricJWK
toPrivateKey, toPublicKey
Methods inherited from interface io.inverno.mod.security.jose.jwk.JWK
cipher, cipher, equals, getAlgorithm, getKeyId, getKeyOperations, getKeyType, getPublicKeyUse, hashCode, isTrusted, keyManager, keyManager, signer, signer, supportsAlgorithm, toJWKThumbprint, toJWKThumbprint
Methods inherited from interface io.inverno.mod.security.jose.jwk.okp.OKPJWK
getCurve, getPrivateKey, getPublicKey
Methods inherited from interface io.inverno.mod.security.jose.jwk.X509JWK
getX509Certificate, getX509CertificateChain, getX509CertificateSHA1Thumbprint, getX509CertificateSHA256Thumbprint, getX509CertificateURL
-
Method Details
-
toPublicJWK
XECJWK toPublicJWK()Description copied from interface:JWK
Returns a public and safe to share representation of the key.
- Specified by:
toPublicJWK
in interfaceAsymmetricJWK<XECPublicKey,
XECPrivateKey> - Specified by:
toPublicJWK
in interfaceJWK
- Specified by:
toPublicJWK
in interfaceOKPJWK<XECPublicKey,
XECPrivateKey> - Specified by:
toPublicJWK
in interfaceX509JWK<XECPublicKey,
XECPrivateKey> - Returns:
- a public representation of this JWK
-
minify
XECJWK minify()Description copied from interface:JWK
Returns a minified representation of the key only containing required data.
Note that the returned JWK may contain private data.
- Specified by:
minify
in interfaceJWK
- Specified by:
minify
in interfaceOKPJWK<XECPublicKey,
XECPrivateKey> - Returns:
- a minified representation of this JWK
-
trust
XECJWK trust()Description copied from interface:JWK
Trusts the key explicitly.
This should be used with care when the authenticity of an untrusted key has been established through external means.
- Specified by:
trust
in interfaceAsymmetricJWK<XECPublicKey,
XECPrivateKey> - Specified by:
trust
in interfaceJWK
- Specified by:
trust
in interfaceOKPJWK<XECPublicKey,
XECPrivateKey> - Specified by:
trust
in interfaceX509JWK<XECPublicKey,
XECPrivateKey> - Returns:
- this JWK
-