JavaTM 2 Platform
Standard Ed. 5.0

java.security.spec
Ŭ·¡½º PKCS8EncodedKeySpec

java.lang.Object 
  »óÀ§¸¦ È®Àå java.security.spec.EncodedKeySpec 
      »óÀ§¸¦ È®Àå java.security.spec.PKCS8EncodedKeySpec
¸ðµç ±¸ÇöµÈ ÀÎÅÍÆäÀ̽º:
KeySpec

public class PKCS8EncodedKeySpec
extends EncodedKeySpec

ASN. 1 PrivateKeyInfo·Î ÁöÁ¤µÈ Çü½Ä¿¡ µû¶ó encode µÈ, ºñ°ø°³Å°ÀÇ ASN. 1 ¿¡¼­ÀÇ encode¸¦ ³ªÅ¸³À´Ï´Ù. PrivateKeyInfo ±¸¹®Àº ´ÙÀ½´ë·Î PKCS#8 Ç¥ÁØÀ¸·Î Á¤ÀÇÇÕ´Ï´Ù.


 PrivateKeyInfo ::= SEQUENCE {
   version Version,
   privateKeyAlgorithm PrivateKeyAlgorithmIdentifier,
   privateKey PrivateKey,
   attributes [0] IMPLICIT Attributes OPTIONAL }

 Version ::= INTEGER

 PrivateKeyAlgorithmIdentifier ::= AlgorithmIdentifier

 PrivateKey ::= OCTET STRING

 Attributes ::= SET OF Attribute
 

µµÀÔµÈ ¹öÀü :
1.2
°ü·Ã Ç׸ñ:
Key, KeyFactory, KeySpec, EncodedKeySpec, X509EncodedKeySpec

»ý¼ºÀÚ °³¿ä
PKCS8EncodedKeySpec (byte[] encodedKey)
          ÁöÁ¤ÀÇ encode µÈ Å°¸¦ »ç¿ëÇØ »õ·Î¿î PKCS8EncodedKeySpec¸¦ ÀÛ¼ºÇÕ´Ï´Ù.
 
¸Þ¼­µå °³¿ä
 byte[] getEncoded ()
          PKCS #8 Ç¥ÁØ¿¡ µû¶ó encode µÈ Å°ÀÇ ¹ÙÀÌÆ®¸¦ ¸®ÅÏÇÕ´Ï´Ù.
 String getFormat ()
          ÀÌ Å° »ç¾ç¿¡ °ü·ÃÇÑ encode Çü½ÄÀÇ À̸§À» ¸®ÅÏÇÕ´Ï´Ù.
 
Ŭ·¡½º java.lang. Object ·ÎºÎÅÍ »ó¼ÓµÈ ¸Þ¼­µå
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

»ý¼ºÀÚ »ó¼¼

PKCS8EncodedKeySpec

public PKCS8EncodedKeySpec(byte[] encodedKey)
ÁöÁ¤ÀÇ encode µÈ Å°¸¦ »ç¿ëÇØ »õ·Î¿î PKCS8EncodedKeySpec¸¦ ÀÛ¼ºÇÕ´Ï´Ù.

ÆĶó¹ÌÅÍ:
encodedKey - Å°. PKCS #8 Ç¥ÁØ¿¡ µû¶ó encode µÇ°í ÀÖ´Ù°í º¸¿©Áø´Ù. ÀÌ ¹è¿­ÀÇ ³»¿ëÀº ÈļÓÀÇ º¯°æ¿¡ ¿µÇâÀ» ¹ÞÁö ¾Ê°Ô Ä«ÇǵȴÙ
¸Þ¼­µåÀÇ »ó¼¼

getEncoded

public byte[] getEncoded()
PKCS #8 Ç¥ÁØ¿¡ µû¶ó encode µÈ Å°ÀÇ ¹ÙÀÌÆ®¸¦ ¸®ÅÏÇÕ´Ï´Ù.

¿À¹ö¶óÀ̵å(override):
Ŭ·¡½º EncodedKeySpec ³»ÀÇ getEncoded
¹Ýȯ°ª:
PKCS #8 ·Î encode µÈ Å°. ÀÌ ¸Þ¼­µå°¡ ºÒ·Á °¥ ¶§¸¶´Ù »õ·Î¿î ¹è¿­À» µ¹·ÁÁØ´Ù

getFormat

public final String  getFormat()
ÀÌ Å° »ç¾ç¿¡ °ü·ÃÇÑ encode Çü½ÄÀÇ À̸§À» ¸®ÅÏÇÕ´Ï´Ù.

Á¤ÀÇ:
Ŭ·¡½º EncodedKeySpec ³»ÀÇ getFormat
¹Ýȯ°ª:
ij¸¯ÅÍ ¶óÀΡ¸PKCS#8¡¹

JavaTM 2 Platform
Standard Ed. 5.0

Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy µµ ÂüÁ¶ÇϽʽÿÀ.