com.nimbusds.jose.jwk
Class RSAKey.OtherPrimesInfo

java.lang.Object
  extended by com.nimbusds.jose.jwk.RSAKey.OtherPrimesInfo
Enclosing class:
RSAKey

@Immutable
public static class RSAKey.OtherPrimesInfo
extends Object

Other Primes Info, represents the private oth parameter of a RSA JWK. This class is immutable.

Author:
Justin Richer

Constructor Summary
RSAKey.OtherPrimesInfo(Base64URL r, Base64URL d, Base64URL t)
          Creates a new JWK Other Primes Info with the specified parameters.
RSAKey.OtherPrimesInfo(RSAOtherPrimeInfo oth)
          Creates a new JWK Other Primes Info from the specified java.security.spec.RSAOtherPrimeInfo instance.
 
Method Summary
 Base64URL getFactorCRTCoefficient()
          The factor Chinese Remainder Theorem (CRT) coefficient (t).
 Base64URL getFactorCRTExponent()
          Gets factor Chinese Remainder Theorem (CRT) exponent (d).
 Base64URL getPrimeFactor()
          Gets the prime factor (r).
static List<RSAKey.OtherPrimesInfo> toList(RSAOtherPrimeInfo[] othArray)
          Converts the specified array of java.security.spec.RSAOtherPrimeInfo instances to a list of JWK Other Prime Infos.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RSAKey.OtherPrimesInfo

public RSAKey.OtherPrimesInfo(Base64URL r,
                              Base64URL d,
                              Base64URL t)
Creates a new JWK Other Primes Info with the specified parameters.

Parameters:
r - The prime factor. Must not be null.
d - The factor Chinese Remainder Theorem (CRT) exponent. Must not be null.
t - The factor Chinese Remainder Theorem (CRT) coefficient. Must not be null.

RSAKey.OtherPrimesInfo

public RSAKey.OtherPrimesInfo(RSAOtherPrimeInfo oth)
Creates a new JWK Other Primes Info from the specified java.security.spec.RSAOtherPrimeInfo instance.

Parameters:
oth - The RSA Other Primes Info instance. Must not be null.
Method Detail

getPrimeFactor

public Base64URL getPrimeFactor()
Gets the prime factor (r).

Returns:
The prime factor.

getFactorCRTExponent

public Base64URL getFactorCRTExponent()
Gets factor Chinese Remainder Theorem (CRT) exponent (d).

Returns:
The factor Chinese Remainder Theorem (CRT) exponent.

getFactorCRTCoefficient

public Base64URL getFactorCRTCoefficient()
The factor Chinese Remainder Theorem (CRT) coefficient (t).

Returns:
The factor Chinese Remainder Theorem (CRT) coefficient.

toList

public static List<RSAKey.OtherPrimesInfo> toList(RSAOtherPrimeInfo[] othArray)
Converts the specified array of java.security.spec.RSAOtherPrimeInfo instances to a list of JWK Other Prime Infos.

Parameters:
othArray - Array of RSA Other Primes Info instances. May be be null.
Returns:
The corresponding list of JWK Other Prime Infos, or empty list of the array was null.


Copyright © 2013 NimbusDS. All Rights Reserved.