public final char[] getPassword ()

Returns a copy of the password.

Note: this method returns a copy of the password. It is the caller's responsibility to zero out the password information after it is no longer needed.

Returns:  the password.

Exceptions:
IllegalStateException    if password has been cleared by calling clearPassword method.