All Superinterfaces:
JWK, SymmetricJWK

public interface PBES2JWK extends 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 Details

  • 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 interface JWK
      Specified by:
      toPublicJWK in interface SymmetricJWK
      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.

      Specified by:
      minify in interface JWK
      Returns:
      a minified representation of this JWK
    • 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 interface JWK
      Specified by:
      trust in interface SymmetricJWK
      Returns:
      this JWK