# java.security.interfaces

Provides interfaces for generating RSA (Rivest, Shamir and Adleman AsymmetricCipher algorithm) keys as defined in the RSA Laboratory Technical Note PKCS#1, and DSA (Digital Signature Algorithm) keys as defined in NIST's FIPS-186.


Note that these interfaces are intended only for key
implementations whose key material is accessible and
available. These interfaces are not intended for key
implementations whose key material resides in
inaccessible, protected storage (such as in a
hardware device).


For more developer information on how to use these
interfaces, including information on how to design
`Key` classes for hardware devices, please refer
to these cryptographic provider developer guides:

- [**How to Implement a Provider for the
  Java™ Cryptography Architecture**](https://developers.google.com/j2objc/javadoc/jre/technotes/guides/security/crypto/HowToImplAProvider.html)

## Package Specification

- PKCS #1: RSA Encryption Standard, Version 1.5, November 1993
- Federal Information Processing Standards Publication (FIPS PUB) 186: Digital Signature Standard (DSS)

## Related Documentation

For further documentation, please see:

- [**Java™
  Cryptography Architecture API Specification and Reference**](https://developers.google.com/j2objc/javadoc/jre/technotes/guides/security/crypto/CryptoSpec.html)

### Interfaces

|---|---|
| [DSAKey](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/interfaces/DSAKey.html) | The interface to a DSA public or private key. |
| [DSAParams](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/interfaces/DSAParams.html) | Interface to a DSA-specific set of key parameters, which defines a DSA *key family*. |
| [DSAPrivateKey](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/interfaces/DSAPrivateKey.html) | The standard interface to a DSA private key. |
| [DSAPublicKey](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/interfaces/DSAPublicKey.html) | The interface to a DSA public key. |
| [ECKey](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/interfaces/ECKey.html) | The interface to an elliptic curve (EC) key. |
| [ECPrivateKey](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/interfaces/ECPrivateKey.html) | The interface to an elliptic curve (EC) private key. |
| [ECPublicKey](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/interfaces/ECPublicKey.html) | The interface to an elliptic curve (EC) public key. |
| [RSAKey](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/interfaces/RSAKey.html) | The interface to an RSA public or private key. |
| [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. |