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, 2013, Oracle and/or its affiliates. All rights reserved.