SecretKeySpec.GetEncoded Method

Definition

Returns the key material of this secret key.

[Android.Runtime.Register("getEncoded", "()[B", "GetGetEncodedHandler")]
public virtual byte[]? GetEncoded ();
[<Android.Runtime.Register("getEncoded", "()[B", "GetGetEncodedHandler")>]
abstract member GetEncoded : unit -> byte[]
override this.GetEncoded : unit -> byte[]

Returns

Byte[]

the key material. Returns a new array each time this method is called.

Implements

Attributes

Remarks

Returns the key material of this secret key.

Java documentation for javax.crypto.spec.SecretKeySpec.getEncoded().

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