Module io.inverno.mod.security.jose
Interface PBES2JWK
- All Superinterfaces:
JWK
,SymmetricJWK
Password-based JSON Web Key.
A Password-based JWK is symmetric, the secret key id defined by the password value.
- Since:
- 1.5
- Author:
- Jeremy Kuhn
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Password-based key type is the same as Octet sequence key type as defined by RFC7518 Section 6.1.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.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.SymmetricJWK
toSecretKey
-
Field Details
-
KEY_TYPE
Password-based key type is the same as Octet sequence key type as defined by RFC7518 Section 6.1.- See Also:
-
-
Method Details
-
getPassword
String getPassword()Returns the password encoded as Base64URL.
- Returns:
- the Base64URL encoded password with no padding.
-
toPublicJWK
PBES2JWK toPublicJWK()Description copied from interface:JWK
Returns a public and safe to share representation of the key.
- Specified by:
toPublicJWK
in interfaceJWK
- Specified by:
toPublicJWK
in interfaceSymmetricJWK
- Returns:
- a public representation of this JWK
-
minify
PBES2JWK 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.
-
trust
PBES2JWK 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 interfaceJWK
- Specified by:
trust
in interfaceSymmetricJWK
- Returns:
- this JWK
-