# Uses of Class
javax.crypto.EncryptedPrivateKeyInfo

Packages that use EncryptedPrivateKeyInfo
Package
Description
javax.crypto
Provides the classes and interfaces for cryptographic operations.

- ## Uses of EncryptedPrivateKeyInfo in javax.crypto

  Methods in javax.crypto that return EncryptedPrivateKeyInfo
  Modifier and Type
  Method
  Description
  `static EncryptedPrivateKeyInfo`
  EncryptedPrivateKeyInfo.`encryptKey(PrivateKey key, char[] password)`
  Preview.
  Creates and encrypts an `EncryptedPrivateKeyInfo` from a given `PrivateKey` and password.
  `static EncryptedPrivateKeyInfo`
  EncryptedPrivateKeyInfo.`encryptKey(PrivateKey key, char[] password, String algorithm, AlgorithmParameterSpec params, Provider provider)`
  Preview.
  Creates and encrypts an `EncryptedPrivateKeyInfo` from a given `PrivateKey`.
  `static EncryptedPrivateKeyInfo`
  EncryptedPrivateKeyInfo.`encryptKey(PrivateKey key, Key encKey, String algorithm, AlgorithmParameterSpec params, Provider provider, SecureRandom random)`
  Preview.
  Creates and encrypts an `EncryptedPrivateKeyInfo` from the given `PrivateKey` using the `encKey` and given parameters.