Class RSAPublicJWK

java.lang.Object
org.keycloak.jose.jwk.JWK
org.keycloak.jose.jwk.RSAPublicJWK

public class RSAPublicJWK extends JWK
Author:
Stian Thorgersen
  • Field Details

  • Constructor Details

    • RSAPublicJWK

      public RSAPublicJWK()
  • Method Details

    • getModulus

      public String getModulus()
    • setModulus

      public void setModulus(String modulus)
    • getPublicExponent

      public String getPublicExponent()
    • setPublicExponent

      public void setPublicExponent(String publicExponent)
    • getX509CertificateChain

      public String[] getX509CertificateChain()
      Overrides:
      getX509CertificateChain in class JWK
    • setX509CertificateChain

      public void setX509CertificateChain(String[] x509CertificateChain)
      Overrides:
      setX509CertificateChain in class JWK
    • getSha1x509Thumbprint

      public String getSha1x509Thumbprint()
      Overrides:
      getSha1x509Thumbprint in class JWK
    • getSha256x509Thumbprint

      public String getSha256x509Thumbprint()
      Overrides:
      getSha256x509Thumbprint in class JWK
    • getOtherClaim

      public <T> T getOtherClaim(String claimName, Class<T> claimType)
      Description copied from class: JWK
      Ability to retrieve custom claims in a unified way. The subclasses (like for example OKPublicJWK) may contain the custom claims as Java properties when the "JWK" class can contain the same claims inside the "otherClaims" map. This method allows to obtain the claim in both ways regardless of if we have "JWK" class or some of it's subclass
      Overrides:
      getOtherClaim in class JWK
      Parameters:
      claimName - claim name
      claimType - claim type
      Returns:
      claim if present or null