JavaTM Platform
Standard Ed. 6

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 되고 있는 것으로 한다 이 배열의 내용은, 후속의 변경에 영향을 받지 않게 카피된다
예외:
NullPointerException - encodedKey 가 null 의 경우
메소드의 상세

getEncoded

public byte[] getEncoded()
PKCS #8 표준에 따라 encode 된 열쇠의 바이트를 돌려줍니다.

오버라이드(override):
클래스 EncodedKeySpec 내의 getEncoded
반환값:
PKCS #8 로 encode 된 열쇠 이 메소드가 불려 갈 때마다 새로운 배열을 돌려준다

getFormat

public final String  getFormat()
이 열쇠 스펙에 관련한 encode 형식의 이름을 돌려줍니다.

정의:
클래스 EncodedKeySpec 내의 getFormat
반환값:
캐릭터 라인「PKCS#8」

JavaTM Platform
Standard Ed. 6

버그의 보고와 기능의 요청
한층 더 자세한 API 레퍼런스 및 개발자 문서에 대해서는,Java SE 개발자용 문서를 참조해 주세요. 개발자전용의 상세한 해설, 개념의 개요, 용어의 정의, 버그의 회피책, 및 코드 실례가 포함되어 있습니다.

Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy 도 참조해 주세요.