All Superinterfaces:
JWK, SymmetricJWK

public interface OCTJWK extends SymmetricJWK

Octet JSON Web Key.

An octet JWK is symmetric, the secret key id defined by the key value.

Since:
1.5
Author:
Jeremy Kuhn
  • Field Details

  • Method Details

    • getKeyValue

      String getKeyValue()

      Returns the key value encoded as Base64URL.

      Returns:
      the Base64URL encoded key value with no padding.
    • toPublicJWK

      OCTJWK toPublicJWK()
      Description copied from interface: JWK

      Returns a public and safe to share representation of the key.

      Specified by:
      toPublicJWK in interface JWK
      Specified by:
      toPublicJWK in interface SymmetricJWK
      Returns:
      a public representation of this JWK
    • minify

      OCTJWK 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 interface JWK
      Returns:
      a minified representation of this JWK
    • trust

      OCTJWK 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 interface JWK
      Specified by:
      trust in interface SymmetricJWK
      Returns:
      this JWK