java.security.spec
クラス PKCS8EncodedKeySpec
java.lang.Object
|
+--java.security.spec.EncodedKeySpec
|
+--java.security.spec.PKCS8EncodedKeySpec
- すべての実装インタフェース:
- KeySpec
- public class PKCS8EncodedKeySpec
- extends EncodedKeySpec
ASN.1 PrivateKeyInfo
で指定された形式に従って符号化された、非公開鍵の ASN.1 での符号化を表し、その構文は次のとおり 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)
指定の符号化された鍵を使って新しい PKCS8EncodedKeySpec を作成します。 |
クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PKCS8EncodedKeySpec
public PKCS8EncodedKeySpec(byte[] encodedKey)
- 指定の符号化された鍵を使って新しい PKCS8EncodedKeySpec を作成します。
- パラメータ:
encodedKey
- 鍵。PKCS #8 標準に従って符号化されているものとする
getEncoded
public byte[] getEncoded()
- PKCS #8 標準に従って符号化された鍵のバイトを返します。
- オーバーライド:
- クラス
EncodedKeySpec
内の getEncoded
- 戻り値:
- PKCS #8 で符号化された鍵
getFormat
public final String getFormat()
- この鍵仕様に関連した符号化形式の名前を返します。
- オーバーライド:
- クラス
EncodedKeySpec
内の getFormat
- 戻り値:
- 文字列
「PKCS#8」
バグや機能要求の報告
さらに詳しい API リファレンスおよび開発者ドキュメントについては、 Java 2 SDK SE Developer Documentation を参照してください。このドキュメントには、概念、用語の定義、回避策、 実用的なコード例など、開発者を対象にした詳細な解説が掲載されています。 Java、Java 2D、JDBC は、米国およびその他の国における米国 Sun Microsystems, Inc. の商標もしくは登録商標です。
Copyright 1993-2000 Sun Microsystems, Inc. 901 San Antonio Road,
Palo Alto, California, 94303, U.S.A. All Rights Reserved.