Package com.auth0.jwk

Class Jwk

java.lang.Object
com.auth0.jwk.Jwk

public class Jwk extends Object
Represents a JSON Web Key (JWK) used to verify the signature of JWTs
  • Constructor Details

  • Method Details

    • fromValues

      public static Jwk fromValues(Map<String,Object> map)
    • getId

      public String getId()
    • getType

      public String getType()
    • getAlgorithm

      public String getAlgorithm()
    • getUsage

      public String getUsage()
    • getOperations

      public String getOperations()
    • getOperationsAsList

      public List<String> getOperationsAsList()
    • getCertificateUrl

      public String getCertificateUrl()
    • getCertificateChain

      public List<String> getCertificateChain()
    • getCertificateThumbprint

      public String getCertificateThumbprint()
    • getAdditionalAttributes

      public Map<String,Object> getAdditionalAttributes()
    • getPublicKey

      public PublicKey getPublicKey() throws InvalidPublicKeyException
      Returns a PublicKey if the 'alg' is 'RSA' or 'EC'
      Returns:
      a public key
      Throws:
      InvalidPublicKeyException - if the key cannot be built or the key type is not a supported type of RSA or EC
    • toString

      public String toString()
      Overrides:
      toString in class Object