Dela via


KeyStore.PasswordProtection.GetPassword Method

Definition

Gets the password.

[Android.Runtime.Register("getPassword", "()[C", "GetGetPasswordHandler")]
public virtual char[] GetPassword ();
[<Android.Runtime.Register("getPassword", "()[C", "GetGetPasswordHandler")>]
abstract member GetPassword : unit -> char[]
override this.GetPassword : unit -> char[]

Returns

Char[]

the password, which may be null

Attributes

Exceptions

if the password has been destroyed.

Remarks

Gets the password.

Note that this method returns a reference to the password. If a clone of the array is created it is the caller's responsibility to zero out the password information after it is no longer needed.

Java documentation for java.security.KeyStore.PasswordProtection.getPassword().

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