Share via


EncryptedPrivateKeyInfo.GetKeySpec メソッド

定義

オーバーロード

GetKeySpec(IKey)

暗号化されたデータから、囲まれた PKCS8EncodedKeySpec オブジェクトを抽出して返します。

GetKeySpec(Cipher)

暗号化されたデータから、囲まれた PKCS8EncodedKeySpec オブジェクトを抽出して返します。

GetKeySpec(IKey, Provider)

暗号化されたデータから、囲まれた PKCS8EncodedKeySpec オブジェクトを抽出して返します。

GetKeySpec(IKey, String)

暗号化されたデータから、囲まれた PKCS8EncodedKeySpec オブジェクトを抽出して返します。

GetKeySpec(IKey)

暗号化されたデータから、囲まれた PKCS8EncodedKeySpec オブジェクトを抽出して返します。

[Android.Runtime.Register("getKeySpec", "(Ljava/security/Key;)Ljava/security/spec/PKCS8EncodedKeySpec;", "GetGetKeySpec_Ljava_security_Key_Handler")]
public virtual Java.Security.Spec.PKCS8EncodedKeySpec? GetKeySpec (Java.Security.IKey? decryptKey);
[<Android.Runtime.Register("getKeySpec", "(Ljava/security/Key;)Ljava/security/spec/PKCS8EncodedKeySpec;", "GetGetKeySpec_Ljava_security_Key_Handler")>]
abstract member GetKeySpec : Java.Security.IKey -> Java.Security.Spec.PKCS8EncodedKeySpec
override this.GetKeySpec : Java.Security.IKey -> Java.Security.Spec.PKCS8EncodedKeySpec

パラメーター

decryptKey
IKey

暗号化されたデータの暗号化解除に使用されるキー。

戻り値

PKCS8EncodedKeySpec オブジェクト。

属性

例外

暗号化されたデータの暗号化を解除するための使用可能な暗号が見つからない場合は 。

が暗号化されたデータの暗号化解除に使用できない場合 decryptKey

が の場合decryptKeynull

注釈

暗号化されたデータから、囲まれた PKCS8EncodedKeySpec オブジェクトを抽出して返します。

1\.5 で追加されました。

javax.crypto.EncryptedPrivateKeyInfo.getKeySpec(java.security.Key)Java ドキュメント。

このページの一部は、によって作成および共有された作業に基づく変更であり、に記載されている条件に従って使用されます。

適用対象

GetKeySpec(Cipher)

暗号化されたデータから、囲まれた PKCS8EncodedKeySpec オブジェクトを抽出して返します。

[Android.Runtime.Register("getKeySpec", "(Ljavax/crypto/Cipher;)Ljava/security/spec/PKCS8EncodedKeySpec;", "GetGetKeySpec_Ljavax_crypto_Cipher_Handler")]
public virtual Java.Security.Spec.PKCS8EncodedKeySpec? GetKeySpec (Javax.Crypto.Cipher? cipher);
[<Android.Runtime.Register("getKeySpec", "(Ljavax/crypto/Cipher;)Ljava/security/spec/PKCS8EncodedKeySpec;", "GetGetKeySpec_Ljavax_crypto_Cipher_Handler")>]
abstract member GetKeySpec : Javax.Crypto.Cipher -> Java.Security.Spec.PKCS8EncodedKeySpec
override this.GetKeySpec : Javax.Crypto.Cipher -> Java.Security.Spec.PKCS8EncodedKeySpec

パラメーター

cipher
Cipher

暗号化されたデータの暗号化解除に使用される初期化された暗号オブジェクト。

戻り値

PKCS8EncodedKeySpec オブジェクト。

属性

例外

指定された暗号が暗号化されたデータの暗号化解除に適していない場合は 。

が の場合ciphernull

注釈

暗号化されたデータから、囲まれた PKCS8EncodedKeySpec オブジェクトを抽出して返します。 <br>注: 囲まれた PKCS8EncodedKeySpec オブジェクトを正常に取得するには、 cipher 暗号化されたデータの生成に使用されるのと同じキーとパラメーターを使用して、Cipher.DECRYPT_MODEまたはCipher.UNWRAP_MODEに初期化する必要があります。

javax.crypto.EncryptedPrivateKeyInfo.getKeySpec(javax.crypto.Cipher)Java ドキュメント。

このページの一部は、によって作成および共有された作業に基づく変更であり、に記載されている条件に従って使用されます。

適用対象

GetKeySpec(IKey, Provider)

暗号化されたデータから、囲まれた PKCS8EncodedKeySpec オブジェクトを抽出して返します。

[Android.Runtime.Register("getKeySpec", "(Ljava/security/Key;Ljava/security/Provider;)Ljava/security/spec/PKCS8EncodedKeySpec;", "GetGetKeySpec_Ljava_security_Key_Ljava_security_Provider_Handler")]
public virtual Java.Security.Spec.PKCS8EncodedKeySpec? GetKeySpec (Java.Security.IKey? decryptKey, Java.Security.Provider? provider);
[<Android.Runtime.Register("getKeySpec", "(Ljava/security/Key;Ljava/security/Provider;)Ljava/security/spec/PKCS8EncodedKeySpec;", "GetGetKeySpec_Ljava_security_Key_Ljava_security_Provider_Handler")>]
abstract member GetKeySpec : Java.Security.IKey * Java.Security.Provider -> Java.Security.Spec.PKCS8EncodedKeySpec
override this.GetKeySpec : Java.Security.IKey * Java.Security.Provider -> Java.Security.Spec.PKCS8EncodedKeySpec

パラメーター

decryptKey
IKey

暗号化されたデータの暗号化解除に使用されるキー。

provider
Provider

暗号実装が使用されるプロバイダーの名前。

戻り値

PKCS8EncodedKeySpec オブジェクト。

属性

例外

暗号化されたデータの暗号化を解除するための使用可能な暗号が見つからない場合は 。

が暗号化されたデータの暗号化解除に使用できない場合 decryptKey

または provider が の場合decryptKeynull

注釈

暗号化されたデータから、囲まれた PKCS8EncodedKeySpec オブジェクトを抽出して返します。

1\.5 で追加されました。

javax.crypto.EncryptedPrivateKeyInfo.getKeySpec(java.security.Key, java.security.Provider)Java ドキュメント。

このページの一部は、によって作成および共有された作業に基づく変更であり、に記載されている条件に従って使用されます。

適用対象

GetKeySpec(IKey, String)

暗号化されたデータから、囲まれた PKCS8EncodedKeySpec オブジェクトを抽出して返します。

[Android.Runtime.Register("getKeySpec", "(Ljava/security/Key;Ljava/lang/String;)Ljava/security/spec/PKCS8EncodedKeySpec;", "GetGetKeySpec_Ljava_security_Key_Ljava_lang_String_Handler")]
public virtual Java.Security.Spec.PKCS8EncodedKeySpec? GetKeySpec (Java.Security.IKey? decryptKey, string? providerName);
[<Android.Runtime.Register("getKeySpec", "(Ljava/security/Key;Ljava/lang/String;)Ljava/security/spec/PKCS8EncodedKeySpec;", "GetGetKeySpec_Ljava_security_Key_Ljava_lang_String_Handler")>]
abstract member GetKeySpec : Java.Security.IKey * string -> Java.Security.Spec.PKCS8EncodedKeySpec
override this.GetKeySpec : Java.Security.IKey * string -> Java.Security.Spec.PKCS8EncodedKeySpec

パラメーター

decryptKey
IKey

暗号化されたデータの暗号化解除に使用されるキー。

providerName
String

暗号実装が使用されるプロバイダーの名前。

戻り値

PKCS8EncodedKeySpec オブジェクト。

属性

例外

プロバイダーが providerName 見つからない場合は 。

暗号化されたデータの暗号化を解除するための使用可能な暗号が見つからない場合は 。

が暗号化されたデータの暗号化解除に使用できない場合 decryptKey

または providerName が の場合decryptKeynull

注釈

暗号化されたデータから、囲まれた PKCS8EncodedKeySpec オブジェクトを抽出して返します。

1\.5 で追加されました。

javax.crypto.EncryptedPrivateKeyInfo.getKeySpec(java.security.Key, java.lang.String)Java ドキュメント。

このページの一部は、によって作成および共有された作業に基づく変更であり、に記載されている条件に従って使用されます。

適用対象