Package com.nimbusds.jose.jwk
Class RSAKey.OtherPrimesInfo
java.lang.Object
com.nimbusds.jose.jwk.RSAKey.OtherPrimesInfo
- All Implemented Interfaces:
Serializable
- Enclosing class:
- RSAKey
Other Primes Info, represents the private
oth parameter of a
RSA JWK. This class is immutable.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionOtherPrimesInfo(Base64URL r, Base64URL d, Base64URL t) Creates a new JWK Other Primes Info with the specified parameters.Creates a new JWK Other Primes Info from the specifiedjava.security.spec.RSAOtherPrimeInfoinstance. -
Method Summary
Modifier and TypeMethodDescriptionThe factor Chinese Remainder Theorem (CRT) coefficient (t).Gets factor Chinese Remainder Theorem (CRT) exponent (d).Gets the prime factor (r).static List<RSAKey.OtherPrimesInfo>toList(RSAOtherPrimeInfo[] othArray) Converts the specified array ofjava.security.spec.RSAOtherPrimeInfoinstances to a list of JWK Other Prime Infos.
-
Constructor Details
-
OtherPrimesInfo
Creates a new JWK Other Primes Info with the specified parameters.- Parameters:
r- The prime factor. Must not benull.d- The factor Chinese Remainder Theorem (CRT) exponent. Must not benull.t- The factor Chinese Remainder Theorem (CRT) coefficient. Must not benull.
-
OtherPrimesInfo
Creates a new JWK Other Primes Info from the specifiedjava.security.spec.RSAOtherPrimeInfoinstance.- Parameters:
oth- The RSA Other Primes Info instance. Must not benull.
-
-
Method Details
-
getPrimeFactor
Gets the prime factor (r).- Returns:
- The prime factor.
-
getFactorCRTExponent
Gets factor Chinese Remainder Theorem (CRT) exponent (d).- Returns:
- The factor Chinese Remainder Theorem (CRT) exponent.
-
getFactorCRTCoefficient
The factor Chinese Remainder Theorem (CRT) coefficient (t).- Returns:
- The factor Chinese Remainder Theorem (CRT) coefficient.
-
toList
Converts the specified array ofjava.security.spec.RSAOtherPrimeInfoinstances to a list of JWK Other Prime Infos.- Parameters:
othArray- Array of RSA Other Primes Info instances. May benull.- Returns:
- The corresponding list of JWK Other Prime Infos, or
empty list of the array was
null.
-