Class RsaJsonWebKey
java.lang.Object
org.jose4j.jwk.JsonWebKey
org.jose4j.jwk.PublicJsonWebKey
org.jose4j.jwk.RsaJsonWebKey
- All Implemented Interfaces:
Serializable
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class PublicJsonWebKey
PublicJsonWebKey.FactoryNested classes/interfaces inherited from class JsonWebKey
JsonWebKey.OutputControlLevel -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class PublicJsonWebKey
jcaProvider, privateKey, writeOutPrivateKeyToJson, X509_CERTIFICATE_CHAIN_PARAMETER, X509_SHA256_THUMBPRINT_PARAMETER, X509_THUMBPRINT_PARAMETER, X509_URL_PARAMETERFields inherited from class JsonWebKey
ALGORITHM_PARAMETER, key, KEY_ID_PARAMETER, KEY_OPERATIONS, KEY_TYPE_PARAMETER, otherParameters, USE_PARAMETER -
Constructor Summary
ConstructorsConstructorDescriptionRsaJsonWebKey(RSAPublicKey publicKey) RsaJsonWebKey(Map<String, Object> params) RsaJsonWebKey(Map<String, Object> params, String jcaProvider) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidfillPrivateTypeSpecificParams(Map<String, Object> params) protected voidfillPublicTypeSpecificParams(Map<String, Object> params) Deprecated.protected StringMethods inherited from class PublicJsonWebKey
fillTypeSpecificParams, getCertificateChain, getLeafCertificate, getPrivateKey, getPublicKey, getX509CertificateSha1Thumbprint, getX509CertificateSha1Thumbprint, getX509CertificateSha256Thumbprint, getX509CertificateSha256Thumbprint, getX509Url, setCertificateChain, setCertificateChain, setPrivateKey, setWriteOutPrivateKeyToJson, setX509CertificateSha1Thumbprint, setX509CertificateSha256Thumbprint, setX509UrlModifier and TypeMethodDescriptionprotected voidfillTypeSpecificParams(Map<String, Object> params, JsonWebKey.OutputControlLevel outputLevel) getX509CertificateSha1Thumbprint(boolean allowFallbackDeriveFromX5c) getX509CertificateSha256Thumbprint(boolean allowFallbackDeriveFromX5c) voidsetCertificateChain(X509Certificate... certificates) voidsetCertificateChain(List<X509Certificate> certificateChain) voidsetPrivateKey(PrivateKey privateKey) voidsetWriteOutPrivateKeyToJson(boolean writeOutPrivateKeyToJson) Deprecated.as of 0.3.2 useJsonWebKey.toJson(org.jose4j.jwk.JsonWebKey.OutputControlLevel)voidvoidvoidsetX509Url(String x5u) Methods inherited from class JsonWebKey
calculateBase64urlEncodedThumbprint, calculateThumbprint, calculateThumbprintUri, getAlgorithm, getKey, getKeyId, getKeyOps, getOtherParameterValue, getString, getString, getStringRequired, getUse, putIfNotNull, removeFromOtherParams, setAlgorithm, setKeyId, setKeyOps, setOtherParameter, setUse, toJson, toJson, toParams, toStringModifier and TypeMethodDescriptioncalculateBase64urlEncodedThumbprint(String hashAlgorithm) byte[]calculateThumbprint(String hashAlgorithm) calculateThumbprintUri(String hashAlgorithm) getKey()getKeyId()<T> TgetOtherParameterValue(String name, Class<T> type) protected static Stringprotected static Stringprotected static StringgetStringRequired(Map<String, Object> params, String name) getUse()protected voidprotected voidremoveFromOtherParams(String... names) voidsetAlgorithm(String algorithm) voidvoidvoidsetOtherParameter(String name, Object value) voidtoJson()toJson(JsonWebKey.OutputControlLevel outputLevel) toParams(JsonWebKey.OutputControlLevel outputLevel) toString()
-
Field Details
-
MODULUS_MEMBER_NAME
- See Also:
-
EXPONENT_MEMBER_NAME
- See Also:
-
PRIVATE_EXPONENT_MEMBER_NAME
- See Also:
-
FIRST_PRIME_FACTOR_MEMBER_NAME
- See Also:
-
SECOND_PRIME_FACTOR_MEMBER_NAME
- See Also:
-
FIRST_FACTOR_CRT_EXPONENT_MEMBER_NAME
- See Also:
-
SECOND_FACTOR_CRT_EXPONENT_MEMBER_NAME
- See Also:
-
FIRST_CRT_COEFFICIENT_MEMBER_NAME
- See Also:
-
OTHER_PRIMES_INFO_MEMBER_NAME
- See Also:
-
PRIME_FACTOR_OTHER_MEMBER_NAME
- See Also:
-
FACTOR_CRT_EXPONENT_OTHER_MEMBER_NAME
- See Also:
-
FACTOR_CRT_COEFFICIENT
- See Also:
-
KEY_TYPE
- See Also:
-
-
Constructor Details
-
RsaJsonWebKey
-
RsaJsonWebKey
- Throws:
JoseException
-
RsaJsonWebKey
- Throws:
JoseException
-
-
Method Details
-
getKeyType
- Specified by:
getKeyTypein classJsonWebKey
-
getRsaPublicKey
-
getRSAPublicKey
Deprecated.deprecated in favor of the more consistently namedgetRsaPublicKey()- Returns:
- RSAPublicKey
-
getRsaPrivateKey
-
fillPublicTypeSpecificParams
- Specified by:
fillPublicTypeSpecificParamsin classPublicJsonWebKey
-
fillPrivateTypeSpecificParams
- Specified by:
fillPrivateTypeSpecificParamsin classPublicJsonWebKey
-
produceThumbprintHashInput
- Specified by:
produceThumbprintHashInputin classJsonWebKey
-
getRsaPublicKey()