Java プラットフォーム 1.2

インタフェース
java.security.Key の使用

Key を使用するパッケージ
java.security セキュリティフレームワークのクラスとインタフェースを提供します。 
java.security.interfaces RSA Laboratory Technical Note PKCS#1 で定義されている RSA (Rivest, Shamir and Adleman AsymmetricCipher algorithm) 鍵、および NIST の FIPS-186 で定義されている DSA (Digital Signature Algorithm) 鍵を生成するためのインタフェースを提供します。  
 

java.security における Key の使用方法
 

java.security における Key のサブインタフェース
 interface PrivateKey
          非公開鍵です。
 interface PublicKey
          公開鍵です。
 

Key を返す java.security におけるメソッド
abstract  Key KeyStoreSpi.engineGetKey(String alias, char[] password)
          指定されたパスワードを使って、指定された別名に関連付けられた鍵を復元し、その鍵を返します。
 Key KeyStore.getKey(String alias, char[] password)
          指定されたパスワードを使って、指定された別名に関連付けられた鍵を復元し、その鍵を返します。
protected abstract  Key KeyFactorySpi.engineTranslateKey(Key key)
          プロバイダが未知であるか、信頼できない可能性がある鍵オブジェクトを、この鍵ファクトリの対応する鍵オブジェクトに変換します。
 Key KeyFactory.translateKey(Key key)
          プロバイダが未知であるか、信頼できない可能性がある鍵オブジェクトを、この鍵ファクトリの対応する鍵オブジェクトに変換します。
 

Key のパラメータを持つ java.security におけるメソッド
abstract  void KeyStoreSpi.engineSetKeyEntry(String alias, Key key, char[] password, Certificate[] chain)
          指定された別名に指定された鍵を割り当て、指定されたパスワードでその鍵を保護します。
 void KeyStore.setKeyEntry(String alias, Key key, char[] password, Certificate[] chain)
          指定された別名に指定された鍵を割り当て、指定されたパスワードでその鍵を保護します。
protected abstract  KeySpec KeyFactorySpi.engineGetKeySpec(Key key, Class keySpec)
          指定された鍵オブジェクトの仕様 (鍵データ) を返します。
protected abstract  Key KeyFactorySpi.engineTranslateKey(Key key)
          プロバイダが未知であるか、信頼できない可能性がある鍵オブジェクトを、この鍵ファクトリの対応する鍵オブジェクトに変換します。
 KeySpec KeyFactory.getKeySpec(Key key, Class keySpec)
          指定された鍵オブジェクトの仕様 (鍵データ) を返します。
 Key KeyFactory.translateKey(Key key)
          プロバイダが未知であるか、信頼できない可能性がある鍵オブジェクトを、この鍵ファクトリの対応する鍵オブジェクトに変換します。
 

java.security.interfaces における Key の使用方法
 

java.security.interfaces における Key のサブインタフェース
 interface DSAPrivateKey
          DSA 非公開鍵に対する標準インタフェースです。
 interface DSAPublicKey
          DSA 公開鍵に対するインタフェースです。
 interface RSAPrivateCrtKey
          中国剰余定理 (CRT) の情報の値を使った、RSA 非公開鍵 (PKCS#1 標準の定義による) のインタフェースです。
 interface RSAPrivateKey
          RSA 非公開鍵のインタフェースです。
 interface RSAPublicKey
          RSA 公開鍵のインタフェースです。
 


Java プラットフォーム 1.2

バグや機能要求の報告
新しい javadoc の表示についてのコメントやご提案
Java は、米国およびその他の国における米国 Sun Microsystems, Inc. の商標もしくは登録商標です。
Copyright 1993-1998 Sun Microsystems, Inc. 901 San Antonio Road,
Palo Alto, California, 94303, U.S.A. All Rights Reserved.