|
JavaTM 2 Platform Std. Ed. v1. 4.0 |
||||||||||
ÀüÀÇ Å¬·¡½º ´ÙÀ½ÀÇ Å¬·¡½º | ÇÁ·¹ÀÓ ÀÖ¾î ÇÁ·¹ÀÓ ¾øÀ½ | ||||||||||
°³¿ä: »óÀÚ | Çʵå | constructor | ¸Þ¼Òµå | »ó¼¼: Çʵå | constructor | ¸Þ¼Òµå |
java.lang.Object | +--javax.crypto.EncryptedPrivateKeyInfo
ÀÌ Å¬·¡½º´Â PKCS #8 ·Î Á¤Àǵǰí ÀÖ´Â EncryptedPrivateKeyInfo
ÇüÀ» ±¸ÇöÇÕ´Ï´Ù.
±× ASN. 1 Á¤ÀÇ´Â ´ÙÀ½°ú °°½À´Ï´Ù.
EncryptedPrivateKeyInfo ::= SEQUENCE { encryptionAlgorithm AlgorithmIdentifier, encryptedData OCTET STRING } AlgorithmIdentifier ::= SEQUENCE { algorithm OBJECT IDENTIFIER, parameters ANY DEFINED BY algorithm OPTIONAL }
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 |
»ý¼ºÀÚÀÇ »ó¼¼ |
public EncryptedPrivateKeyInfo(byte[] encoded) throws IOException
EncryptedPrivateKeyInfo
¸¦ ±¸Ãà (Áï ÇØ¼®)ÇÕ´Ï´Ù.
encoded
- ÀÌ ¿ÀºêÁ§Æ®ÀÇ ASN. 1 ÀÎÄÚµù
NullPointerException
- encoded
°¡ null ÀÇ °æ¿ì
IOException
- ASN. 1 ÀÎÄÚµùÀÇ ÇØ¼®½Ã¿¡ ¿¡·¯°¡ ¹ß»ýÇßÀ» °æ¿ìpublic EncryptedPrivateKeyInfo(String algName, byte[] encryptedData) throws NoSuchAlgorithmException
EncryptedPrivateKeyInfo
¸¦ ±¸ÃàÇÕ´Ï´Ù.
ÁÖ: ÀÌ ¿ÀºêÁ§Æ®ÀÇ ±¸Ãà½Ã¿¡ encrypedData
°¡ º¹Á¦µË´Ï´Ù. ¾ÏÈ£È ¾Ë°í¸®Áò¿¡ °ü·Ã ÆÄ¶ó¹ÌÅͰ¡ ÀÖ´Â °æ¿ì´Â AlgorithmParameters ¸¦ °¡Áö´Â constructor¸¦ ÆÄ¶ó¹ÌÅͷμ »ç¿ëÇÕ´Ï´Ù.
algName
- ¾Ë°í¸®Áò¸íencryptedData
- ¾ÏÈ£ÈµÈ µ¥ÀÌÅÍ
NullPointerException
- algName
¶Ç´Â encryptedData
°¡ null ÀÇ °æ¿ì
IllegalArgumentException
- encryptedData
°¡ ÇÏ´Ã (±æÀÌ 0)ÀÇ °æ¿ì
NoSuchAlgorithmException
- ÁöÁ¤µÈ algName °¡ ¼Æ÷Æ®µÇ¾î ÀÖÁö ¾ÊÀº °æ¿ì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 °¡ ¼Æ÷Æ®µÇ¾î ÀÖÁö ¾ÊÀº °æ¿ì¸Þ¼ÒµåÀÇ »ó¼¼ |
public String getAlgName()
public AlgorithmParameters getAlgParameters()
public byte[] getEncryptedData()
public PKCS8EncodedKeySpec getKeySpec(Cipher c) throws InvalidKeySpecException
InvalidKeySpecException
- ÁöÁ¤µÈ ¾ÏÈ£°¡ ¾ÏÈ£ÈµÈ µ¥ÀÌÅÍ¿¡ ºÎÀûÀýÇÑ °æ¿ì, ¶Ç´Â ¾ÏÈ£ÈµÈ µ¥ÀÌÅͰ¡ ¸Á°¡Á® ÀÖ¾î º¹È£È(decode) ÇÒ ¼ö ¾ø´Â °æ¿ìpublic byte[] getEncoded() throws IOException
IOException
- ±× ASN. 1 ÀÎÄÚµùÀÇ ±¸Ãà½Ã¿¡ ¿¡·¯°¡ ¹ß»ýÇßÀ» °æ¿ì
|
JavaTM 2 Platform Std. Ed. v1. 4.0 |
||||||||||
ÀüÀÇ Å¬·¡½º ´ÙÀ½ÀÇ Å¬·¡½º | ÇÁ·¹ÀÓ ÀÖ¾î ÇÁ·¹ÀÓ ¾øÀ½ | ||||||||||
°³¿ä: »óÀÚ | Çʵå | constructor | ¸Þ¼Òµå | »ó¼¼: Çʵå | constructor | ¸Þ¼Òµå |
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.