JavaTM 2
Platform
Std.  Ed.  v1. 4.0

javax.crypto
Ŭ·¡½º EncryptedPrivateKeyInfo

java.lang.Object 
  |
  +--javax.crypto.EncryptedPrivateKeyInfo

public class EncryptedPrivateKeyInfo
extends Object

ÀÌ Å¬·¡½º´Â PKCS #8 ·Î Á¤Àǵǰí ÀÖ´Â EncryptedPrivateKeyInfo ÇüÀ» ±¸ÇöÇÕ´Ï´Ù.

±× ASN. 1 Á¤ÀÇ´Â ´ÙÀ½°ú °°½À´Ï´Ù.

 EncryptedPrivateKeyInfo ::=  SEQUENCE {
     encryptionAlgorithm   AlgorithmIdentifier,
     encryptedData   OCTET STRING }
 
 AlgorithmIdentifier  ::=  SEQUENCE  {
     algorithm              OBJECT IDENTIFIER,
     parameters             ANY DEFINED BY algorithm OPTIONAL  }
 

µµÀÔµÈ ¹öÁ¯:
1.4
°ü·Ã Ç׸ñ:
PKCS8EncodedKeySpec

»ý¼ºÀÚÀÇ °³¿ä
EncryptedPrivateKeyInfo (AlgorithmParameters  algParams, byte[] encryptedData)
          ¾Ïȣȭ ¾Ë°í¸®Áò ÆÄ¶ó¹ÌÅÍ¿Í ¾ÏȣȭµÈ µ¥ÀÌÅͷκÎÅÍ EncryptedPrivateKeyInfo ¸¦ ±¸ÃàÇÕ´Ï´Ù.
EncryptedPrivateKeyInfo (byte[] encoded)
          ±× ASN. 1 ÀÎÄÚµùÀ¸·ÎºÎÅÍ EncryptedPrivateKeyInfo ¸¦ ±¸Ãà (Áï ÇØ¼®)ÇÕ´Ï´Ù.
EncryptedPrivateKeyInfo (String  algName, byte[] encryptedData)
          ¾Ïȣȭ ¾Ë°í¸®Áò¸íÀ¸·Î ¾ÏȣȭµÈ µ¥ÀÌÅͷκÎÅÍ EncryptedPrivateKeyInfo À» ±¸ÃàÇÕ´Ï´Ù.
 
¸Þ¼ÒµåÀÇ °³¿ä
 String getAlgName ()
          ¾Ïȣȭ ¾Ë°í¸®ÁòÀ» µ¹·ÁÁÝ´Ï´Ù.
 AlgorithmParameters getAlgParameters ()
          ¾Ïȣȭ ¾Ë°í¸®ÁòÀ¸·Î »ç¿ëµÇ´Â ¾Ë°í¸®Áò ÆÄ¶ó¹ÌÅ͸¦ µ¹·ÁÁÝ´Ï´Ù.
 byte[] getEncoded ()
          ÀÌ ¿ÀºêÁ§Æ®ÀÇ ASN. 1 ÀÎÄÚµùÀ» µ¹·ÁÁÝ´Ï´Ù.
 byte[] getEncryptedData ()
          ¾ÏȣȭµÈ µ¥ÀÌÅÍÀÇ Ä«ÇǸ¦ µ¹·ÁÁÝ´Ï´Ù.
 PKCS8EncodedKeySpec getKeySpec (Cipher  c)
          ¾ÏȣȭµÈ µ¥ÀÌÅͷκÎÅÍ ¾ÏȣȭµÈ PKCS8EncodedKeySpec ¿ÀºêÁ§Æ®¸¦ ÃßÃâÇØ µ¹·ÁÁÝ´Ï´Ù.
 
Ŭ·¡½º java.lang. Object ¿¡¼­ »ó¼Ó¹ÞÀº ¸Þ¼Òµå
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait
 

»ý¼ºÀÚÀÇ »ó¼¼

EncryptedPrivateKeyInfo

public EncryptedPrivateKeyInfo(byte[] encoded)
                        throws IOException 
±× ASN. 1 ÀÎÄÚµùÀ¸·ÎºÎÅÍ EncryptedPrivateKeyInfo ¸¦ ±¸Ãà (Áï ÇØ¼®)ÇÕ´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
encoded - ÀÌ ¿ÀºêÁ§Æ®ÀÇ ASN. 1 ÀÎÄÚµù
¿¹¿Ü:
NullPointerException - encoded °¡ null ÀÇ °æ¿ì
IOException - ASN. 1 ÀÎÄÚµùÀÇ ÇØ¼®½Ã¿¡ ¿¡·¯°¡ ¹ß»ýÇßÀ» °æ¿ì

EncryptedPrivateKeyInfo

public EncryptedPrivateKeyInfo(String  algName,
                               byte[] encryptedData)
                        throws NoSuchAlgorithmException 
¾Ïȣȭ ¾Ë°í¸®Áò¸íÀ¸·Î ¾ÏȣȭµÈ µ¥ÀÌÅͷκÎÅÍ EncryptedPrivateKeyInfo ¸¦ ±¸ÃàÇÕ´Ï´Ù.

ÁÖ: ÀÌ ¿ÀºêÁ§Æ®ÀÇ ±¸Ãà½Ã¿¡ encrypedData °¡ º¹Á¦µË´Ï´Ù. ¾Ïȣȭ ¾Ë°í¸®Áò¿¡ °ü·Ã ÆÄ¶ó¹ÌÅͰ¡ ÀÖ´Â °æ¿ì´Â AlgorithmParameters ¸¦ °¡Áö´Â constructor¸¦ ÆÄ¶ó¹ÌÅͷμ­ »ç¿ëÇÕ´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
algName - ¾Ë°í¸®Áò¸í
encryptedData - ¾ÏȣȭµÈ µ¥ÀÌÅÍ
¿¹¿Ü:
NullPointerException - algName ¶Ç´Â encryptedData °¡ null ÀÇ °æ¿ì
IllegalArgumentException - encryptedData °¡ ÇÏ´Ã (±æÀÌ 0)ÀÇ °æ¿ì
NoSuchAlgorithmException - ÁöÁ¤µÈ algName °¡ ¼­Æ÷Æ®µÇ¾î ÀÖÁö ¾ÊÀº °æ¿ì

EncryptedPrivateKeyInfo

public EncryptedPrivateKeyInfo(AlgorithmParameters  algParams,
                               byte[] encryptedData)
                        throws NoSuchAlgorithmException 
¾Ïȣȭ ¾Ë°í¸®Áò ÆÄ¶ó¹ÌÅÍ¿Í ¾ÏȣȭµÈ µ¥ÀÌÅͷκÎÅÍ EncryptedPrivateKeyInfo ¸¦ ±¸ÃàÇÕ´Ï´Ù.

ÁÖ: ÀÌ ¿ÀºêÁ§Æ®ÀÇ ±¸Ãà½Ã¿¡ encrypedData °¡ º¹Á¦µË´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
algParams - ¾Ïȣȭ ¾Ë°í¸®ÁòÀÇ ¾Ë°í¸®Áò ÆÄ¶ó¹ÌÅÍ. algParams.getEncoded() ´Â EncryptedPrivateKeyInfo ÇüÀÇ AlgorithmIdentifer ÄÄÆÛ³ÍÆ®ÀÇ parameters ÇʵåÀÇ ANS. 1 ÀÇ ¾ÏȣȭµÈ ¹ÙÀÌÆ®¸¦ µ¹·ÁÁÖ´Â
encryptedData - ¾ÏȣȭµÈ µ¥ÀÌÅÍ
¿¹¿Ü:
NullPointerException - algParams ¶Ç´Â encryptedData °¡ null ÀÇ °æ¿ì
IllegalArgumentException - encryptedData °¡ ÇÏ´Ã (±æÀÌ 0)ÀÇ °æ¿ì
NoSuchAlgorithmException - ÁöÁ¤µÈ algParams ÆÄ¶ó¹ÌÅÍÀÇ ÁöÁ¤µÈ algName °¡ ¼­Æ÷Æ®µÇ¾î ÀÖÁö ¾ÊÀº °æ¿ì
¸Þ¼ÒµåÀÇ »ó¼¼

getAlgName

public String  getAlgName()
¾Ïȣȭ ¾Ë°í¸®ÁòÀ» µ¹·ÁÁÝ´Ï´Ù.

¹Ýȯ°ª:
¾Ë°í¸®Áò¸í

getAlgParameters

public AlgorithmParameters  getAlgParameters()
¾Ïȣȭ ¾Ë°í¸®ÁòÀ¸·Î »ç¿ëµÇ´Â ¾Ë°í¸®Áò ÆÄ¶ó¹ÌÅ͸¦ µ¹·ÁÁÝ´Ï´Ù.

¹Ýȯ°ª:
¾Ë°í¸®Áò ÆÄ¶ó¹ÌÅÍ

getEncryptedData

public byte[] getEncryptedData()
¾ÏȣȭµÈ µ¥ÀÌÅÍÀÇ Ä«ÇǸ¦ µ¹·ÁÁÝ´Ï´Ù.

¹Ýȯ°ª:
¾ÏȣȭµÈ µ¥ÀÌÅÍÀÇ Ä«ÇÇ

getKeySpec

public PKCS8EncodedKeySpec  getKeySpec(Cipher  c)
                               throws InvalidKeySpecException 
¾ÏȣȭµÈ µ¥ÀÌÅͷκÎÅÍ ¾ÏȣȭµÈ PKCS8EncodedKeySpec ¿ÀºêÁ§Æ®¸¦ ÃßÃâÇØ µ¹·ÁÁÝ´Ï´Ù.

¹Ýȯ°ª:
PKCS8EncodedKeySpec ¿ÀºêÁ§Æ®
¿¹¿Ü:
InvalidKeySpecException - ÁöÁ¤µÈ ¾ÏÈ£°¡ ¾ÏȣȭµÈ µ¥ÀÌÅÍ¿¡ ºÎÀûÀýÇÑ °æ¿ì, ¶Ç´Â ¾ÏȣȭµÈ µ¥ÀÌÅͰ¡ ¸Á°¡Á® ÀÖ¾î º¹È£È­(decode) ÇÒ ¼ö ¾ø´Â °æ¿ì

getEncoded

public byte[] getEncoded()
                  throws IOException 
ÀÌ ¿ÀºêÁ§Æ®ÀÇ ASN. 1 ÀÎÄÚµùÀ» µ¹·ÁÁÝ´Ï´Ù.

¹Ýȯ°ª:
ASN. 1 ÀÎÄÚµù
¿¹¿Ü:
IOException - ±× ASN. 1 ÀÎÄÚµùÀÇ ±¸Ãà½Ã¿¡ ¿¡·¯°¡ ¹ß»ýÇßÀ» °æ¿ì

JavaTM 2
Platform
Std.  Ed.  v1. 4.0

¹ö±×ÀÇ º¸°í¿Í ±â´ÉÀÇ ¸®Äù½ºÆ®
ÀÌ¿ÜÀÇ API ·¹ÆÛ·±½º ¹× °³¹ßÀÚ¿ë ¹®¼­¿¡ ´ëÇØ¼­´Â Java 2 SDK SE °³¹ßÀÚ¿ë ¹®¼­¸¦ ÂüÁ¶ÇØ ÁÖ¼¼¿ä. °³¹ßÀÚÀü¿ëÀÇ »ó¼¼ÇÑ ÇØ¼³, °³³äÀÇ °³¿ä, ¿ë¾îÀÇ Á¤ÀÇ, ¹ö±×ÀÇ È¸ÇÇÃ¥, ¹× ÄÚµå ½Ç·Ê°¡ Æ÷ÇԵǾî ÀÖ½À´Ï´Ù.

Java, Java 2 D, ¹× JDBC ´Â ¹Ì±¹ ¹× ±× ¿ÜÀÇ ³ª¶ó¿¡ À־ÀÇ ¹Ì±¹ Sun Microsystems, Inc. ÀÇ »óÇ¥ ȤÀº µî·Ï»óÇ¥ÀÔ´Ï´Ù.
Copyright 1993-2002 Sun Microsystems, Inc. 901 San Antonio Road
Palo Alto, California, 94303, U.S.A. All Rights Reserved.