Dela via


PskKeyManager.GetKey Method

Definition

Overloads

GetKey(String, String, Socket)

Gets the PSK to use for the provided socket.

GetKey(String, String, SSLEngine)

Gets the PSK to use for the provided engine.

GetKey(String, String, Socket)

Gets the PSK to use for the provided socket.

[Android.Runtime.Register("getKey", "(Ljava/lang/String;Ljava/lang/String;Ljava/net/Socket;)Ljavax/crypto/SecretKey;", "GetGetKey_Ljava_lang_String_Ljava_lang_String_Ljava_net_Socket_Handler")]
public virtual Javax.Crypto.ISecretKey? GetKey (string? identityHint, string? identity, Java.Net.Socket? socket);
[<Android.Runtime.Register("getKey", "(Ljava/lang/String;Ljava/lang/String;Ljava/net/Socket;)Ljavax/crypto/SecretKey;", "GetGetKey_Ljava_lang_String_Ljava_lang_String_Ljava_net_Socket_Handler")>]
abstract member GetKey : string * string * Java.Net.Socket -> Javax.Crypto.ISecretKey
override this.GetKey : string * string * Java.Net.Socket -> Javax.Crypto.ISecretKey

Parameters

identityHint
String

identity hint provided by the server to help select the key or null if none provided.

identity
String

identity provided by the client to help select the key.

socket
Socket

Returns

Attributes

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

GetKey(String, String, SSLEngine)

Gets the PSK to use for the provided engine.

[Android.Runtime.Register("getKey", "(Ljava/lang/String;Ljava/lang/String;Ljavax/net/ssl/SSLEngine;)Ljavax/crypto/SecretKey;", "GetGetKey_Ljava_lang_String_Ljava_lang_String_Ljavax_net_ssl_SSLEngine_Handler")]
public virtual Javax.Crypto.ISecretKey? GetKey (string? identityHint, string? identity, Javax.Net.Ssl.SSLEngine? engine);
[<Android.Runtime.Register("getKey", "(Ljava/lang/String;Ljava/lang/String;Ljavax/net/ssl/SSLEngine;)Ljavax/crypto/SecretKey;", "GetGetKey_Ljava_lang_String_Ljava_lang_String_Ljavax_net_ssl_SSLEngine_Handler")>]
abstract member GetKey : string * string * Javax.Net.Ssl.SSLEngine -> Javax.Crypto.ISecretKey
override this.GetKey : string * string * Javax.Net.Ssl.SSLEngine -> Javax.Crypto.ISecretKey

Parameters

identityHint
String

identity hint provided by the server to help select the key or null if none provided.

identity
String

identity provided by the client to help select the key.

engine
SSLEngine

Returns

Attributes

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to