/**@class javax.crypto.EncryptedPrivateKeyInfo
@extends java.lang.Object

 This class implements the <code>EncryptedPrivateKeyInfo</code> type
 as defined in PKCS #8.
 <p>Its ASN.1 definition is as follows:

 <pre>
 EncryptedPrivateKeyInfo ::=  SEQUENCE {
     encryptionAlgorithm   AlgorithmIdentifier,
     encryptedData   OCTET STRING }

 AlgorithmIdentifier  ::=  SEQUENCE  {
     algorithm              OBJECT IDENTIFIER,
     parameters             ANY DEFINED BY algorithm OPTIONAL  }
 </pre>

 @author Valerie Peng

 @see java.security.spec.PKCS8EncodedKeySpec

 @since 1.4
*/
var EncryptedPrivateKeyInfo = {

/**Returns the encryption algorithm.
 <p>Note: Standard name is returned instead of the specified one
 in the constructor when such mapping is available.
 See Appendix A in the
 <a href=
   "https://docs.oracle.com/javase/8/docs/technotes/guides/security/crypto/CryptoSpec.html#AppA">
 Java Cryptography Architecture Reference Guide</a>
 for information about standard Cipher algorithm names.
@return {String} the encryption algorithm name.
*/
getAlgName : function(  ) {},

/**Returns the algorithm parameters used by the encryption algorithm.
@return {Object {java.security.AlgorithmParameters}} the algorithm parameters.
*/
getAlgParameters : function(  ) {},

/**Returns the encrypted data.
@return {Number} the encrypted data. Returns a new array
 each time this method is called.
*/
getEncryptedData : function(  ) {},

/**Extract the enclosed PKCS8EncodedKeySpec object from the
 encrypted data and return it.
 <br>Note: In order to successfully retrieve the enclosed
 PKCS8EncodedKeySpec object, <code>cipher</code> needs
 to be initialized to either Cipher.DECRYPT_MODE or
 Cipher.UNWRAP_MODE, with the same key and parameters used
 for generating the encrypted data.
@param {Object {Cipher}} cipher the initialized cipher object which will be
 used for decrypting the encrypted data.
@return {Object {java.security.spec.PKCS8EncodedKeySpec}} the PKCS8EncodedKeySpec object.
@exception NullPointerException if <code>cipher</code>
 is null.
@exception InvalidKeySpecException if the given cipher is
 inappropriate for the encrypted data or the encrypted
 data is corrupted and cannot be decrypted.
*/
getKeySpec : function(  ) {},

/**Extract the enclosed PKCS8EncodedKeySpec object from the
 encrypted data and return it.
@param {Object {Key}} decryptKey key used for decrypting the encrypted data.
@return {Object {java.security.spec.PKCS8EncodedKeySpec}} the PKCS8EncodedKeySpec object.
@exception NullPointerException if <code>decryptKey</code>
 is null.
@exception NoSuchAlgorithmException if cannot find appropriate
 cipher to decrypt the encrypted data.
@exception InvalidKeyException if <code>decryptKey</code>
 cannot be used to decrypt the encrypted data or the decryption
 result is not a valid PKCS8KeySpec.
@since 1.5
*/
getKeySpec : function(  ) {},

/**Extract the enclosed PKCS8EncodedKeySpec object from the
 encrypted data and return it.
@param {Object {Key}} decryptKey key used for decrypting the encrypted data.
@param {String} providerName the name of provider whose Cipher
 implementation will be used.
@return {Object {java.security.spec.PKCS8EncodedKeySpec}} the PKCS8EncodedKeySpec object.
@exception NullPointerException if <code>decryptKey</code>
 or <code>providerName</code> is null.
@exception NoSuchProviderException if no provider
 <code>providerName</code> is registered.
@exception NoSuchAlgorithmException if cannot find appropriate
 cipher to decrypt the encrypted data.
@exception InvalidKeyException if <code>decryptKey</code>
 cannot be used to decrypt the encrypted data or the decryption
 result is not a valid PKCS8KeySpec.
@since 1.5
*/
getKeySpec : function(  ) {},

/**Extract the enclosed PKCS8EncodedKeySpec object from the
 encrypted data and return it.
@param {Object {Key}} decryptKey key used for decrypting the encrypted data.
@param {Object {Provider}} provider the name of provider whose Cipher implementation
 will be used.
@return {Object {java.security.spec.PKCS8EncodedKeySpec}} the PKCS8EncodedKeySpec object.
@exception NullPointerException if <code>decryptKey</code>
 or <code>provider</code> is null.
@exception NoSuchAlgorithmException if cannot find appropriate
 cipher to decrypt the encrypted data in <code>provider</code>.
@exception InvalidKeyException if <code>decryptKey</code>
 cannot be used to decrypt the encrypted data or the decryption
 result is not a valid PKCS8KeySpec.
@since 1.5
*/
getKeySpec : function(  ) {},

/**Returns the ASN.1 encoding of this object.
@return {Number} the ASN.1 encoding. Returns a new array
 each time this method is called.
@exception IOException if error occurs when constructing its
 ASN.1 encoding.
*/
getEncoded : function(  ) {},


};