Package org.keycloak.jose.jwk
Class RSAPublicJWK
java.lang.Object
org.keycloak.jose.jwk.JWK
org.keycloak.jose.jwk.RSAPublicJWK
- Author:
- Stian Thorgersen
-
Nested Class Summary
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class org.keycloak.jose.jwk.JWK
ALGORITHM, KEY_ID, KEY_TYPE, otherClaims, PUBLIC_KEY_USE, SHA1_509_THUMBPRINT, SHA256_509_THUMBPRINT, X5C -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> TgetOtherClaim(String claimName, Class<T> claimType) Ability to retrieve custom claims in a unified way.String[]voidsetModulus(String modulus) voidsetPublicExponent(String publicExponent) voidsetX509CertificateChain(String[] x509CertificateChain) Methods inherited from class org.keycloak.jose.jwk.JWK
getAlgorithm, getKeyId, getKeyType, getOtherClaims, getPublicKeyUse, setAlgorithm, setKeyId, setKeyType, setOtherClaims, setPublicKeyUse, setSha1x509Thumbprint, setSha256x509Thumbprint
-
Field Details
-
RSA
- See Also:
-
RS256
- See Also:
-
MODULUS
- See Also:
-
PUBLIC_EXPONENT
- See Also:
-
-
Constructor Details
-
RSAPublicJWK
public RSAPublicJWK()
-
-
Method Details
-
getModulus
-
setModulus
-
getPublicExponent
-
setPublicExponent
-
getX509CertificateChain
- Overrides:
getX509CertificateChainin classJWK
-
setX509CertificateChain
- Overrides:
setX509CertificateChainin classJWK
-
getSha1x509Thumbprint
- Overrides:
getSha1x509Thumbprintin classJWK
-
getSha256x509Thumbprint
- Overrides:
getSha256x509Thumbprintin classJWK
-
getOtherClaim
Description copied from class:JWKAbility 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:
getOtherClaimin classJWK- Parameters:
claimName- claim nameclaimType- claim type- Returns:
- claim if present or null
-