Class BasicJWKCredential

All Implemented Interfaces:
JWKCredential, Credential, MutableCredential
Direct Known Subclasses:
BasicExpiringJWKCredential

public class BasicJWKCredential extends BasicCredential implements JWKCredential
A basic implementation of JWKCredential.
  • Field Details

    • jwkAlgorithm

      @Nullable private Algorithm jwkAlgorithm
      jwk algorithm.
    • jwkKid

      @Nullable private String jwkKid
      jwk kid.
  • Constructor Details

    • BasicJWKCredential

      public BasicJWKCredential()
  • Method Details

    • setKid

      public void setKid(@Nullable String kid)
      Set the kid of jwk.
      Parameters:
      kid - kid of jwk
    • getKid

      @Nullable public String getKid()
      Get kid of JWK.
      Specified by:
      getKid in interface JWKCredential
      Returns:
      kid parameter.
    • setAlgorithm

      public void setAlgorithm(@Nullable Algorithm algorithm)
      Set the algorithm of jwk.
      Parameters:
      algorithm - algorithm of jwk.
    • getAlgorithm

      @Nullable public Algorithm getAlgorithm()
      Get algorithm of JWK.
      Specified by:
      getAlgorithm in interface JWKCredential
      Returns:
      algorithm of JWK.