APIdia Launch Partner
Top Description Fields Constructors Methods
java.security.spec

public Class RSAOtherPrimeInfo

extends Object
Class Inheritance
Imports
java.math.BigInteger

This class represents the triplet (prime, exponent, and coefficient) inside RSA's OtherPrimeInfo structure, as defined in the PKCS#1 v2.2 standard. The ASN.1 syntax of RSA's OtherPrimeInfo is as follows:
OtherPrimeInfo ::= SEQUENCE {
  prime        INTEGER,
  exponent     INTEGER,
  coefficient  INTEGER
}

Author
Valerie Peng
Since
1.4
External Specification
https://www.rfc-editor.org/info/rfc8017
See Also
RSAPrivateCrtKeySpec, java.security.interfaces.RSAMultiPrimePrivateCrtKey

Field Summary

Modifier and TypeField and Description
private final BigInteger
private final BigInteger
private final BigInteger

Constructor Summary

AccessConstructor and Description
public
RSAOtherPrimeInfo(BigInteger
the prime factor of n.
prime
,
BigInteger
the exponent.
primeExponent
,
BigInteger
the Chinese Remainder Theorem coefficient.
crtCoefficient
)

Creates a new RSAOtherPrimeInfo given the prime, primeExponent, and crtCoefficient as defined in PKCS#1.

Method Summary

Modifier and TypeMethod and Description
public final BigInteger

Returns:

the crtCoefficient.
getCrtCoefficient
()

Returns the prime's crtCoefficient.

public final BigInteger

Returns:

the primeExponent.
getExponent
()

Returns the prime's exponent.

public final BigInteger

Returns:

the prime.
getPrime
()

Returns the prime.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

crtCoefficientback to summary
private final BigInteger crtCoefficient
primeback to summary
private final BigInteger prime
primeExponentback to summary
private final BigInteger primeExponent

Constructor Detail

RSAOtherPrimeInfoback to summary
public RSAOtherPrimeInfo(BigInteger prime, BigInteger primeExponent, BigInteger crtCoefficient)

Creates a new RSAOtherPrimeInfo given the prime, primeExponent, and crtCoefficient as defined in PKCS#1.

Parameters
prime:BigInteger

the prime factor of n.

primeExponent:BigInteger

the exponent.

crtCoefficient:BigInteger

the Chinese Remainder Theorem coefficient.

Exceptions
NullPointerException:
if any of the parameters, i.e. prime, primeExponent, crtCoefficient, is null.

Method Detail

getCrtCoefficientback to summary
public final BigInteger getCrtCoefficient()

Returns the prime's crtCoefficient.

Returns:BigInteger

the crtCoefficient.

getExponentback to summary
public final BigInteger getExponent()

Returns the prime's exponent.

Returns:BigInteger

the primeExponent.

getPrimeback to summary
public final BigInteger getPrime()

Returns the prime.

Returns:BigInteger

the prime.