# RSAKey

public interface **RSAKey**

|---|---|---|
| Known Indirect Subclasses [RSAMultiPrimePrivateCrtKey](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/interfaces/RSAMultiPrimePrivateCrtKey.html), [RSAPrivateCrtKey](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/interfaces/RSAPrivateCrtKey.html), [RSAPrivateKey](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/interfaces/RSAPrivateKey.html), [RSAPublicKey](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/interfaces/RSAPublicKey.html) |---|---| | [RSAMultiPrimePrivateCrtKey](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/interfaces/RSAMultiPrimePrivateCrtKey.html) | The interface to an RSA multi-prime private key, as defined in the PKCS#1 v2.1, using the *Chinese Remainder Theorem* (CRT) information values. | | [RSAPrivateCrtKey](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/interfaces/RSAPrivateCrtKey.html) | The interface to an RSA private key, as defined in the PKCS#1 standard, using the *Chinese Remainder Theorem* (CRT) information values. | | [RSAPrivateKey](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/interfaces/RSAPrivateKey.html) | The interface to an RSA private key. | | [RSAPublicKey](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/interfaces/RSAPublicKey.html) | The interface to an RSA public key. | |||

The interface to an RSA public or private key.

##### See Also

- `https://developers.google.com/j2objc/javadoc/jre/reference/java/security/interfaces/RSAPublicKey.html`
- `https://developers.google.com/j2objc/javadoc/jre/reference/java/security/interfaces/RSAPrivateKey.html`

### Public Method Summary

|---|---|
| abstract BigInteger | [getModulus](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/interfaces/RSAKey.html#getModulus())() Returns the modulus. |

## Public Methods

#### public abstract BigInteger
**getModulus**
()

Returns the modulus.

##### Returns

- the modulus