public class RSAOtherPrimeInfo extends Object
OtherPrimeInfo ::= SEQUENCE { prime INTEGER, exponent INTEGER, coefficient INTEGER }
RSAPrivateCrtKeySpec
,
RSAMultiPrimePrivateCrtKey
Constructor and Description |
---|
RSAOtherPrimeInfo(BigInteger prime,
BigInteger primeExponent,
BigInteger crtCoefficient)
Creates a new
RSAOtherPrimeInfo
given the prime, primeExponent, and
crtCoefficient as defined in PKCS#1. |
Modifier and Type | Method and Description |
---|---|
BigInteger |
getCrtCoefficient()
Returns the prime's crtCoefficient.
|
BigInteger |
getExponent()
Returns the prime's exponent.
|
BigInteger |
getPrime()
Returns the prime.
|
public RSAOtherPrimeInfo(BigInteger prime, BigInteger primeExponent, BigInteger crtCoefficient)
RSAOtherPrimeInfo
given the prime, primeExponent, and
crtCoefficient as defined in PKCS#1.prime
- the prime factor of n.primeExponent
- the exponent.crtCoefficient
- the Chinese Remainder Theorem
coefficient.NullPointerException
- if any of the parameters, i.e.
prime
, primeExponent
,
crtCoefficient
, is null.public final BigInteger getPrime()
public final BigInteger getExponent()
public final BigInteger getCrtCoefficient()
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2016, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.