# Uses of Interface
java.security.DEREncodable

Packages that use DEREncodablePREVIEW
Package
Description
java.security
Provides the classes and interfaces for the security framework.
java.security.cert
Provides classes and interfaces for parsing and managing certificates, certificate revocation lists (CRLs), and certification paths.
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.
java.security.spec
Provides classes and interfaces for key specifications and algorithm parameter specifications.
javax.crypto
Provides the classes and interfaces for cryptographic operations.
javax.crypto.interfaces
Provides interfaces for Diffie-Hellman keys as defined in RSA Laboratories' PKCS #3.

- ## Uses of DEREncodablePREVIEW in java.security

  Subinterfaces of DEREncodablePREVIEW in java.security
  Modifier and Type
  Interface
  Description
  `interface`
  `AsymmetricKey`
  An asymmetric key, which can be either a public key or a private key.
  `interface`
  `PrivateKey`
  A private key.
  `interface`
  `PublicKey`
  A public key.
  Classes in java.security that implement DEREncodablePREVIEW
  Modifier and Type
  Class
  Description
  `final class`
  `KeyPair`
  This class is a simple holder for a key pair (a public key and a private key).
  `final record`
  `PEMPREVIEW`
  Preview.
  `PEM` is a `DEREncodable`PREVIEW that represents Privacy-Enhanced Mail (PEM) data by its type and Base64-encoded content.
  Methods in java.security with type parameters of type DEREncodablePREVIEW
  Modifier and Type
  Method
  Description
  `<S extends DEREncodablePREVIEW>
  S`
  PEMDecoder.`decode(InputStream is, Class<S> tClass)`
  Decodes and returns a `DEREncodable` of the specified class for the given `InputStream`.
  `<S extends DEREncodablePREVIEW>
  S`
  PEMDecoder.`decode(String str, Class<S> tClass)`
  Decodes and returns a `DEREncodable` of the specified class from the given PEM string.
  Methods in java.security that return DEREncodablePREVIEW
  Modifier and Type
  Method
  Description
  `DEREncodablePREVIEW`
  PEMDecoder.`decode(InputStream is)`
  Decodes and returns a `DEREncodable` from the given `InputStream`.
  `DEREncodablePREVIEW`
  PEMDecoder.`decode(String str)`
  Decodes and returns a `DEREncodable` from the given `String`.
  Methods in java.security with parameters of type DEREncodablePREVIEW
  Modifier and Type
  Method
  Description
  `byte[]`
  PEMEncoder.`encode(DEREncodablePREVIEW de)`
  Encodes the specified `DEREncodable` and returns a PEM-encoded byte array.
  `String`
  PEMEncoder.`encodeToString(DEREncodablePREVIEW de)`
  Encodes the specified `DEREncodable` and returns a PEM-encoded string.

- ## Uses of DEREncodablePREVIEW in java.security.cert

  Classes in java.security.cert that implement DEREncodablePREVIEW
  Modifier and Type
  Class
  Description
  `class`
  `X509Certificate`
  Abstract class for X.509 certificates.
  `class`
  `X509CRL`
  Abstract class for an X.509 Certificate Revocation List (CRL).

- ## Uses of DEREncodablePREVIEW in java.security.interfaces

  Subinterfaces of DEREncodablePREVIEW in java.security.interfaces
  Modifier and Type
  Interface
  Description
  `interface`
  `DSAPrivateKey`
  The standard interface to a DSA private key.
  `interface`
  `DSAPublicKey`
  The interface to a DSA public key.
  `interface`
  `ECPrivateKey`
  The interface to an elliptic curve (EC) private key.
  `interface`
  `ECPublicKey`
  The interface to an elliptic curve (EC) public key.
  `interface`
  `EdECPrivateKey`
  An interface for an elliptic curve private key as defined by RFC 8032: Edwards-Curve Digital Signature Algorithm (EdDSA).
  `interface`
  `EdECPublicKey`
  An interface for an elliptic curve public key as defined by RFC 8032: Edwards-Curve Digital Signature Algorithm (EdDSA).
  `interface`
  `RSAMultiPrimePrivateCrtKey`
  The interface to an RSA multi-prime private key, as defined in the PKCS#1 v2.2 standard, using the Chinese Remainder Theorem (CRT) information values.
  `interface`
  `RSAPrivateCrtKey`
  The interface to an RSA private key, as defined in the PKCS#1 v2.2 standard, using the Chinese Remainder Theorem (CRT) information values.
  `interface`
  `RSAPrivateKey`
  The interface to an RSA private key.
  `interface`
  `RSAPublicKey`
  The interface to an RSA public key.
  `interface`
  `XECPrivateKey`
  An interface for an elliptic curve private key as defined by RFC 7748.
  `interface`
  `XECPublicKey`
  An interface for an elliptic curve public key as defined by RFC 7748.

- ## Uses of DEREncodablePREVIEW in java.security.spec

  Classes in java.security.spec that implement DEREncodablePREVIEW
  Modifier and Type
  Class
  Description
  `class`
  `PKCS8EncodedKeySpec`
  This class represents the ASN.1 encoding of a private key, encoded according to the ASN.1 type `OneAsymmetricKey`.
  `class`
  `X509EncodedKeySpec`
  This class represents the ASN.1 encoding of a public key, encoded according to the ASN.1 type `SubjectPublicKeyInfo`.

- ## Uses of DEREncodablePREVIEW in javax.crypto

  Classes in javax.crypto that implement DEREncodablePREVIEW
  Modifier and Type
  Class
  Description
  `class`
  `EncryptedPrivateKeyInfo`
  This class implements the `EncryptedPrivateKeyInfo` type as defined in PKCS #8.
  Methods in javax.crypto with parameters of type DEREncodablePREVIEW
  Modifier and Type
  Method
  Description
  `static EncryptedPrivateKeyInfo`
  EncryptedPrivateKeyInfo.`encrypt(DEREncodablePREVIEW de, char[] password)`
  Preview.
  Creates an `EncryptedPrivateKeyInfo` by encrypting the specified `DEREncodable`.
  `static EncryptedPrivateKeyInfo`
  EncryptedPrivateKeyInfo.`encrypt(DEREncodablePREVIEW de, char[] password, String algorithm, AlgorithmParameterSpec params, Provider provider)`
  Preview.
  Creates an `EncryptedPrivateKeyInfo` by encrypting the specified `DEREncodable`.
  `static EncryptedPrivateKeyInfo`
  EncryptedPrivateKeyInfo.`encrypt(DEREncodablePREVIEW de, Key encryptKey, String algorithm, AlgorithmParameterSpec params, Provider provider, SecureRandom random)`
  Preview.
  Creates an `EncryptedPrivateKeyInfo` by encrypting the specified `DEREncodable`.

- ## Uses of DEREncodablePREVIEW in javax.crypto.interfaces

  Subinterfaces of DEREncodablePREVIEW in javax.crypto.interfaces
  Modifier and Type
  Interface
  Description
  `interface`
  `DHPrivateKey`
  The interface to a Diffie-Hellman private key.
  `interface`
  `DHPublicKey`
  The interface to a Diffie-Hellman public key.