Class Password
- java.lang.Object
-
- javax.security.enterprise.credential.Password
-
public class Password extends java.lang.Object
Represents a text-based password, and includes a built-in mechanism for securely clearing the value.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
Securely clears the password value.boolean
compareTo(java.lang.String password)
char[]
getValue()
Determines the password value.
-
-
-
Constructor Detail
-
Password
public Password(char[] value)
Constructor- Parameters:
value
- The password value- Throws:
java.lang.NullPointerException
- Value is null
-
Password
public Password(java.lang.String value)
Constructor- Parameters:
value
- The password value- Throws:
java.lang.NullPointerException
- Value is null
-
-