Added in API level 1

RSAOtherPrimeInfo

open class RSAOtherPrimeInfo
kotlin.Any
   ↳ java.security.spec.RSAOtherPrimeInfo

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
  }
 
  

Summary

Public constructors
RSAOtherPrimeInfo(prime: BigInteger!, primeExponent: BigInteger!, crtCoefficient: BigInteger!)

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

Public methods
BigInteger!

Returns the prime's crtCoefficient.

BigInteger!

Returns the prime's exponent.

BigInteger!

Returns the prime.

Public constructors

RSAOtherPrimeInfo

Added in API level 1
RSAOtherPrimeInfo(
    prime: BigInteger!,
    primeExponent: BigInteger!,
    crtCoefficient: BigInteger!)

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
java.lang.NullPointerException if any of the parameters, i.e. prime, primeExponent, crtCoefficient, is null.

Public methods

getCrtCoefficient

Added in API level 1
fun getCrtCoefficient(): BigInteger!

Returns the prime's crtCoefficient.

Return
BigInteger! the crtCoefficient.

getExponent

Added in API level 1
fun getExponent(): BigInteger!

Returns the prime's exponent.

Return
BigInteger! the primeExponent.

getPrime

Added in API level 1
fun getPrime(): BigInteger!

Returns the prime.

Return
BigInteger! the prime.