Class Key

java.lang.Object
io.fusionauth.domain.Key
All Implemented Interfaces:
Buildable<Key>

public class Key extends Object implements Buildable<Key>
Domain for a public key, key pair or an HMAC secret. This is used by KeyMaster to manage keys for JWTs, SAML, etc.
Author:
Brian Pontarelli
  • Field Details

  • Constructor Details

    • Key

      public Key()
    • Key

      public Key(Key key)
  • Method Details

    • canSign

      public boolean canSign()
    • canVerify

      public boolean canVerify()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • getDisplayName

      public String getDisplayName()
    • hasPrivateKey

      public boolean hasPrivateKey()
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • isExpired

      public boolean isExpired()
    • isPair

      public boolean isPair()
      Returns:
      True if the key has a public and private key.
    • normalize

      public void normalize()
    • privateKeyOnly

      public boolean privateKeyOnly()
    • secure

      public Key secure()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • use

      public boolean use(KeyUse use)
    • use

      public KeyUse use()