# RSAMultiPrimePrivateCrtKey

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  
Summary: [Constants](https://developer.android.com/reference/java/security/interfaces/RSAMultiPrimePrivateCrtKey#constants) \| [Inherited Constants](https://developer.android.com/reference/java/security/interfaces/RSAMultiPrimePrivateCrtKey#inhconstants) \| [Methods](https://developer.android.com/reference/java/security/interfaces/RSAMultiPrimePrivateCrtKey#pubmethods) \| [Inherited Methods](https://developer.android.com/reference/java/security/interfaces/RSAMultiPrimePrivateCrtKey#inhmethods)  

# RSAMultiPrimePrivateCrtKey


`
public


interface
RSAMultiPrimePrivateCrtKey
`


`


implements

`[RSAPrivateKey](https://developer.android.com/reference/java/security/interfaces/RSAPrivateKey)`


`

|-----------------------------------------------------|
| java.security.interfaces.RSAMultiPrimePrivateCrtKey |

<br />

*** ** * ** ***

The interface to an RSA multi-prime private key, as defined in the
[PKCS#1 v2.2](https://tools.ietf.org/rfc/rfc8017.txt) standard,
using the *Chinese Remainder Theorem* (CRT) information values.  
**See also:**

- [RSAPrivateKeySpec](https://developer.android.com/reference/java/security/spec/RSAPrivateKeySpec)
- [RSAMultiPrimePrivateCrtKeySpec](https://developer.android.com/reference/java/security/spec/RSAMultiPrimePrivateCrtKeySpec)
- [RSAPrivateKey](https://developer.android.com/reference/java/security/interfaces/RSAPrivateKey)
- [RSAPrivateCrtKey](https://developer.android.com/reference/java/security/interfaces/RSAPrivateCrtKey)

## Summary

|                                                                                                                                  ### Constants                                                                                                                                  ||
|--------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `long` | [serialVersionUID](https://developer.android.com/reference/java/security/interfaces/RSAMultiPrimePrivateCrtKey#serialVersionUID) *This constant was deprecated in API level 35. A `serialVersionUID` field in an interface is ineffectual. Do not use; no replacement.* |

|                                                                                                                                                                                                                                                                                                                                 ### Inherited constants                                                                                                                                                                                                                                                                                                                                 |
|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| From interface [java.security.interfaces.RSAPrivateKey](https://developer.android.com/reference/java/security/interfaces/RSAPrivateKey) |--------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | `long` | [serialVersionUID](https://developer.android.com/reference/java/security/interfaces/RSAPrivateKey#serialVersionUID) *This constant was deprecated in API level 35. A `serialVersionUID` field in an interface is ineffectual. Do not use; no replacement.* | |
| From interface [java.security.PrivateKey](https://developer.android.com/reference/java/security/PrivateKey) |--------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | `long` | [serialVersionUID](https://developer.android.com/reference/java/security/PrivateKey#serialVersionUID) *This constant was deprecated in API level 34. A `serialVersionUID` field in an interface is ineffectual. Do not use; no replacement.* |                                                         |
| From interface [java.security.Key](https://developer.android.com/reference/java/security/Key) |--------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | `long` | [serialVersionUID](https://developer.android.com/reference/java/security/Key#serialVersionUID) *This constant was deprecated in API level 34. A `serialVersionUID` field in an interface is ineffectual. Do not use; no replacement.* |                                                                                     |

|                                                                                                                                                               ### Public methods                                                                                                                                                                ||
|-----------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` abstract `[BigInteger](https://developer.android.com/reference/java/math/BigInteger)                          | ` `[getCrtCoefficient](https://developer.android.com/reference/java/security/interfaces/RSAMultiPrimePrivateCrtKey#getCrtCoefficient())`() ` Returns the crtCoefficient.                                                       |
| ` abstract `[RSAOtherPrimeInfo[]](https://developer.android.com/reference/java/security/spec/RSAOtherPrimeInfo) | ` `[getOtherPrimeInfo](https://developer.android.com/reference/java/security/interfaces/RSAMultiPrimePrivateCrtKey#getOtherPrimeInfo())`() ` Returns the otherPrimeInfo or null if there are only two prime factors (p and q). |
| ` abstract `[BigInteger](https://developer.android.com/reference/java/math/BigInteger)                          | ` `[getPrimeExponentP](https://developer.android.com/reference/java/security/interfaces/RSAMultiPrimePrivateCrtKey#getPrimeExponentP())`() ` Returns the primeExponentP.                                                       |
| ` abstract `[BigInteger](https://developer.android.com/reference/java/math/BigInteger)                          | ` `[getPrimeExponentQ](https://developer.android.com/reference/java/security/interfaces/RSAMultiPrimePrivateCrtKey#getPrimeExponentQ())`() ` Returns the primeExponentQ.                                                       |
| ` abstract `[BigInteger](https://developer.android.com/reference/java/math/BigInteger)                          | ` `[getPrimeP](https://developer.android.com/reference/java/security/interfaces/RSAMultiPrimePrivateCrtKey#getPrimeP())`() ` Returns the primeP.                                                                               |
| ` abstract `[BigInteger](https://developer.android.com/reference/java/math/BigInteger)                          | ` `[getPrimeQ](https://developer.android.com/reference/java/security/interfaces/RSAMultiPrimePrivateCrtKey#getPrimeQ())`() ` Returns the primeQ.                                                                               |
| ` abstract `[BigInteger](https://developer.android.com/reference/java/math/BigInteger)                          | ` `[getPublicExponent](https://developer.android.com/reference/java/security/interfaces/RSAMultiPrimePrivateCrtKey#getPublicExponent())`() ` Returns the public exponent.                                                      |

| ### Inherited methods |
|-----------------------|---|
| From interface ` `[java.security.interfaces.RSAPrivateKey](https://developer.android.com/reference/java/security/interfaces/RSAPrivateKey)` ` |----------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------| | ` abstract `[BigInteger](https://developer.android.com/reference/java/math/BigInteger) | ` `[getPrivateExponent](https://developer.android.com/reference/java/security/interfaces/RSAPrivateKey#getPrivateExponent())`() ` Returns the private exponent. | ||
| From interface ` `[java.security.interfaces.RSAKey](https://developer.android.com/reference/java/security/interfaces/RSAKey)` ` |------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------| | ` abstract `[BigInteger](https://developer.android.com/reference/java/math/BigInteger)                                 | ` `[getModulus](https://developer.android.com/reference/java/security/interfaces/RSAKey#getModulus())`() ` Returns the modulus.                           | | ` default `[AlgorithmParameterSpec](https://developer.android.com/reference/java/security/spec/AlgorithmParameterSpec) | ` `[getParams](https://developer.android.com/reference/java/security/interfaces/RSAKey#getParams())`() ` Returns the parameters associated with this key. | ||
| From interface ` `[javax.security.auth.Destroyable](https://developer.android.com/reference/javax/security/auth/Destroyable)` ` |--------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------| | ` default void`    | ` `[destroy](https://developer.android.com/reference/javax/security/auth/Destroyable#destroy())`() ` Destroy this `Object`.                                 | | ` default boolean` | ` `[isDestroyed](https://developer.android.com/reference/javax/security/auth/Destroyable#isDestroyed())`() ` Determine if this `Object` has been destroyed. | ||
| From interface ` `[java.security.Key](https://developer.android.com/reference/java/security/Key)` ` |--------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ` abstract `[String](https://developer.android.com/reference/java/lang/String) | ` `[getAlgorithm](https://developer.android.com/reference/java/security/Key#getAlgorithm())`() ` Returns the standard algorithm name for this key.                                                     | | ` abstract byte[]`                                                             | ` `[getEncoded](https://developer.android.com/reference/java/security/Key#getEncoded())`() ` Returns the key in its primary encoding format, or null if this key does not support encoding.            | | ` abstract `[String](https://developer.android.com/reference/java/lang/String) | ` `[getFormat](https://developer.android.com/reference/java/security/Key#getFormat())`() ` Returns the name of the primary encoding format of this key, or null if this key does not support encoding. | ||

## Constants

### serialVersionUID

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)   
Deprecated in [API level
35](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final long serialVersionUID
```


**This constant was deprecated
in API level 35.**   

A `serialVersionUID` field in an interface is
ineffectual. Do not use; no replacement.

The type fingerprint that is set to indicate
serialization compatibility with a previous
version of the type.

<br />

Constant Value:

618058533534628008
(0x0893c8f62dbaf8a8)


## Public methods

### getCrtCoefficient

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public abstract BigInteger getCrtCoefficient ()
```

Returns the crtCoefficient.

<br />

|                                                Returns                                                 ||
|----------------------------------------------------------------------------|----------------------------|
| [BigInteger](https://developer.android.com/reference/java/math/BigInteger) | the crtCoefficient. <br /> |

### getOtherPrimeInfo

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public abstract RSAOtherPrimeInfo[] getOtherPrimeInfo ()
```

Returns the otherPrimeInfo or null if there are only
two prime factors (p and q).

<br />

|                                                             Returns                                                             ||
|-----------------------------------------------------------------------------------------------------|----------------------------|
| [RSAOtherPrimeInfo[]](https://developer.android.com/reference/java/security/spec/RSAOtherPrimeInfo) | the otherPrimeInfo. <br /> |

### getPrimeExponentP

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public abstract BigInteger getPrimeExponentP ()
```

Returns the primeExponentP.

<br />

|                                                Returns                                                 ||
|----------------------------------------------------------------------------|----------------------------|
| [BigInteger](https://developer.android.com/reference/java/math/BigInteger) | the primeExponentP. <br /> |

### getPrimeExponentQ

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public abstract BigInteger getPrimeExponentQ ()
```

Returns the primeExponentQ.

<br />

|                                                Returns                                                 ||
|----------------------------------------------------------------------------|----------------------------|
| [BigInteger](https://developer.android.com/reference/java/math/BigInteger) | the primeExponentQ. <br /> |

### getPrimeP

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public abstract BigInteger getPrimeP ()
```

Returns the primeP.

<br />

|                                            Returns                                             ||
|----------------------------------------------------------------------------|--------------------|
| [BigInteger](https://developer.android.com/reference/java/math/BigInteger) | the primeP. <br /> |

### getPrimeQ

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public abstract BigInteger getPrimeQ ()
```

Returns the primeQ.

<br />

|                                            Returns                                             ||
|----------------------------------------------------------------------------|--------------------|
| [BigInteger](https://developer.android.com/reference/java/math/BigInteger) | the primeQ. <br /> |

### getPublicExponent

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public abstract BigInteger getPublicExponent ()
```

Returns the public exponent.

<br />

|                                                 Returns                                                 ||
|----------------------------------------------------------------------------|-----------------------------|
| [BigInteger](https://developer.android.com/reference/java/math/BigInteger) | the public exponent. <br /> |