Build 1.0_r1(from source)

javax.crypto
Class EncryptedPrivateKeyInfo

java.lang.Object
  extended by javax.crypto.EncryptedPrivateKeyInfo

public class EncryptedPrivateKeyInfo
extends Object


Constructor Summary
EncryptedPrivateKeyInfo(AlgorithmParameters algParams, byte[] encryptedData)
           
EncryptedPrivateKeyInfo(byte[] encoded)
           
EncryptedPrivateKeyInfo(String encrAlgName, byte[] encryptedData)
           
 
Method Summary
 String getAlgName()
           
 AlgorithmParameters getAlgParameters()
           
 byte[] getEncoded()
           
 byte[] getEncryptedData()
           
 PKCS8EncodedKeySpec getKeySpec(Cipher cipher)
           
 PKCS8EncodedKeySpec getKeySpec(Key decryptKey)
           
 PKCS8EncodedKeySpec getKeySpec(Key decryptKey, Provider provider)
           
 PKCS8EncodedKeySpec getKeySpec(Key decryptKey, String providerName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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
Method Detail

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

Build 1.0_r1(from source)

Please submit a feedback, bug or feature