javax.crypto
Class EncryptedPrivateKeyInfo
java.lang.Object
javax.crypto.EncryptedPrivateKeyInfo
public class EncryptedPrivateKeyInfo
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EncryptedPrivateKeyInfo
public EncryptedPrivateKeyInfo(byte[] encoded)
throws IOException
- Throws:
IOException
EncryptedPrivateKeyInfo
public EncryptedPrivateKeyInfo(String encrAlgName,
byte[] encryptedData)
throws NoSuchAlgorithmException
- Throws:
NoSuchAlgorithmException
EncryptedPrivateKeyInfo
public EncryptedPrivateKeyInfo(AlgorithmParameters algParams,
byte[] encryptedData)
throws NoSuchAlgorithmException
- Throws:
NoSuchAlgorithmException
getAlgName
public String getAlgName()
getAlgParameters
public AlgorithmParameters getAlgParameters()
getEncryptedData
public byte[] getEncryptedData()
getKeySpec
public PKCS8EncodedKeySpec getKeySpec(Cipher cipher)
throws InvalidKeySpecException
- Throws:
InvalidKeySpecException
getKeySpec
public PKCS8EncodedKeySpec getKeySpec(Key decryptKey)
throws NoSuchAlgorithmException,
InvalidKeyException
- Throws:
NoSuchAlgorithmException
InvalidKeyException
getKeySpec
public PKCS8EncodedKeySpec getKeySpec(Key decryptKey,
String providerName)
throws NoSuchProviderException,
NoSuchAlgorithmException,
InvalidKeyException
- Throws:
NoSuchProviderException
NoSuchAlgorithmException
InvalidKeyException
getKeySpec
public PKCS8EncodedKeySpec getKeySpec(Key decryptKey,
Provider provider)
throws NoSuchAlgorithmException,
InvalidKeyException
- Throws:
NoSuchAlgorithmException
InvalidKeyException
getEncoded
public byte[] getEncoded()
throws IOException
- Throws:
IOException
Please submit a feedback, bug or feature