public class Password extends AbstractSimpleDatatype<String> implements Security
Datatype
used to store a simple password as String
. Its
string representation
is a fixed String
(********) in order to prevent accidental logging
or other spreading of passwords. The actually get the password as String
use AbstractSimpleDatatype.getValue()
.Modifier and Type | Field and Description |
---|---|
private static long |
serialVersionUID |
Modifier | Constructor and Description |
---|---|
protected |
Password()
The constructor for de-serialization in GWT.
|
|
Password(String value)
The constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
toString()
|
static Password |
valueOf(String value) |
getValue
equals, getValue, hashCode
private static final long serialVersionUID
protected Password()
public Password(String value)
value
- is the actual password.public String toString()
Datatype
String
representation of this Datatype
. While the general contract of
Object.toString()
is very weak and mainly used for debugging, the contract here is very strong. The
returned String
has to be suitable for end-users and official output to any kind of sink. NlsMessage
for
this purpose and implement NlsObject
if you want to support I18N/L10N.Copyright © 2001–2016 mmm-Team. All rights reserved.