- All Superinterfaces:
AsymmetricJWK<EdECPublicKey,,EdECPrivateKey> JWK,OKPJWK<EdECPublicKey,,EdECPrivateKey> X509JWK<EdECPublicKey,EdECPrivateKey>
Edward-curve JSON Web Key.
An Edward-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, toPublicKeyMethods 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, toJWKThumbprintMethods inherited from interface io.inverno.mod.security.jose.jwk.okp.OKPJWK
getCurve, getPrivateKey, getPublicKeyMethods inherited from interface io.inverno.mod.security.jose.jwk.X509JWK
getX509Certificate, getX509CertificateChain, getX509CertificateSHA1Thumbprint, getX509CertificateSHA256Thumbprint, getX509CertificateURL
-
Method Details
-
toPublicJWK
EdECJWK toPublicJWK()Description copied from interface:JWKReturns a public and safe to share representation of the key.
- Specified by:
toPublicJWKin interfaceAsymmetricJWK<EdECPublicKey,EdECPrivateKey> - Specified by:
toPublicJWKin interfaceJWK- Specified by:
toPublicJWKin interfaceOKPJWK<EdECPublicKey,EdECPrivateKey> - Specified by:
toPublicJWKin interfaceX509JWK<EdECPublicKey,EdECPrivateKey> - Returns:
- a public representation of this JWK
-
minify
EdECJWK minify()Description copied from interface:JWKReturns a minified representation of the key only containing required data.
Note that the returned JWK may contain private data.
- Specified by:
minifyin interfaceJWK- Specified by:
minifyin interfaceOKPJWK<EdECPublicKey,EdECPrivateKey> - Returns:
- a minified representation of this JWK
-
trust
EdECJWK trust()Description copied from interface:JWKTrusts the key explicitly.
This should be used with care when the authenticity of an untrusted key has been established through external means.
- Specified by:
trustin interfaceAsymmetricJWK<EdECPublicKey,EdECPrivateKey> - Specified by:
trustin interfaceJWK- Specified by:
trustin interfaceOKPJWK<EdECPublicKey,EdECPrivateKey> - Specified by:
trustin interfaceX509JWK<EdECPublicKey,EdECPrivateKey> - Returns:
- this JWK
-