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 String
static final String
static final String
static final String
Fields 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> T
getOtherClaim
(String claimName, Class<T> claimType) Ability to retrieve custom claims in a unified way.String[]
void
setModulus
(String modulus) void
setPublicExponent
(String publicExponent) void
setX509CertificateChain
(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:
getX509CertificateChain
in classJWK
-
setX509CertificateChain
- Overrides:
setX509CertificateChain
in classJWK
-
getSha1x509Thumbprint
- Overrides:
getSha1x509Thumbprint
in classJWK
-
getSha256x509Thumbprint
- Overrides:
getSha256x509Thumbprint
in classJWK
-
getOtherClaim
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 classJWK
- Parameters:
claimName
- claim nameclaimType
- claim type- Returns:
- claim if present or null
-