Class JWKSetSpec.RefreshTokenEncryption

  • Enclosing class:
    JWKSetSpec

    public static class JWKSetSpec.RefreshTokenEncryption
    extends Object
    AES/SIV key for refresh token payload encryption.
    • Field Detail

      • 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.