public class PKCS8EncodedKeySpec extends EncodedKeySpec
PrivateKeyInfoで指定された形式に従ってエンコードされた、非公開キーのASN.1でのエンコーディングを表します。 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
 Key, KeyFactory, KeySpec, EncodedKeySpec, X509EncodedKeySpec| コンストラクタ | 説明 | 
|---|---|
| PKCS8EncodedKeySpec(byte[] encodedKey) | 指定のエンコードされたキーを使って新しいPKCS8EncodedKeySpecを作成します。 | 
public PKCS8EncodedKeySpec(byte[] encodedKey)
encodedKey - キー。PKCS#8標準に従ってエンコードされているものとする。 この配列の内容は、後続の変更に影響されないようにコピーされる。 NullPointerException - encodedKeyがnullである場合。public byte[] getEncoded()
getEncoded、クラスEncodedKeySpecpublic final String getFormat()
getFormat、クラスEncodedKeySpec"PKCS#8"。 バグまたは機能を送信 
詳細なAPIリファレンスおよび開発者ドキュメントについては、Java SEのドキュメントを参照してください。 そのドキュメントには、概念的な概要、用語の定義、回避方法、有効なコード例などの、開発者を対象にしたより詳細な説明が含まれています。 
 Copyright © 1993, 2025, Oracle and/or its affiliates.  All rights reserved.  Use is subject to license terms.  Documentation Redistribution Policyも参照してください。