Class JWKSetSpec.RefreshTokenEncryption
- java.lang.Object
-
- com.nimbusds.openid.connect.provider.jwkset.JWKSetSpec.RefreshTokenEncryption
-
- Enclosing class:
- JWKSetSpec
public static class JWKSetSpec.RefreshTokenEncryption extends Object
AES/SIV key for refresh token payload encryption.
-
-
Field Summary
Fields Modifier and Type Field Description static int
KEY_BIT_SIZE
The JWK size.static String
KEY_ID
The JWK ID.static com.nimbusds.jose.jwk.JWKMatcher
KEY_MATCHER
The JWK matcher.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static com.nimbusds.jose.jwk.OctetSequenceKey
generateKey()
Generates a JWK.static SecretKey
loadKey(com.nimbusds.jose.jwk.JWKSet jwkSet)
Loads the JWK from the specified JWK set.
-
-
-
Field Detail
-
KEY_ID
public static final String KEY_ID
The JWK ID.- See Also:
- Constant Field Values
-
KEY_BIT_SIZE
public static final int KEY_BIT_SIZE
The JWK size.- See Also:
- Constant Field Values
-
KEY_MATCHER
public static final com.nimbusds.jose.jwk.JWKMatcher KEY_MATCHER
The JWK matcher.
-
-
Method Detail
-
generateKey
public static com.nimbusds.jose.jwk.OctetSequenceKey generateKey() throws com.nimbusds.jose.JOSEException
Generates a JWK.- Returns:
- The JWK.
- Throws:
com.nimbusds.jose.JOSEException
-
loadKey
public static SecretKey loadKey(com.nimbusds.jose.jwk.JWKSet jwkSet) throws com.nimbusds.jose.JOSEException
Loads the JWK from the specified JWK set.- Parameters:
jwkSet
- The JWK set.- Returns:
- The refresh token encryption key as Java secret key.
- Throws:
com.nimbusds.jose.JOSEException
- If no matching JWK could be found.
-
-