public class Password extends Object
Constructor and Description |
---|
Password(char[] value)
Constructor
|
Password(String value)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
clear()
Securely clears the password value.
|
boolean |
compareTo(String password) |
char[] |
getValue()
Determines the password value.
|
public Password(char[] value)
value
- The password valueNullPointerException
- Value is nullpublic Password(String value)
value
- The password valueNullPointerException
- Value is nullpublic char[] getValue()
public void clear()
public boolean compareTo(String password)
Copyright © 1996-2017, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.