org.fuin.objects4j
Class Password

java.lang.Object
  extended by org.fuin.objects4j.AbstractStringBasedType<Password>
      extended by org.fuin.objects4j.Password
All Implemented Interfaces:
Serializable, Comparable<Password>

@Immutable
public final class Password
extends AbstractStringBasedType<Password>

A password with a length between 8 and 20 characters.

See Also:
Serialized Form

Constructor Summary
Password(String password)
          Constructor with password.
 
Method Summary
 String toString()
           
 
Methods inherited from class org.fuin.objects4j.AbstractStringBasedType
compareTo, equals, hashCode, length
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Password

@Requires(value="(password!=null) && ValidPasswordValidator.isValid(password)")
public Password(String password)
Constructor with password.

Parameters:
password - Password.
Method Detail

toString

public String toString()
Specified by:
toString in class AbstractStringBasedType<Password>


Copyright © 2011 Future Invent Informationsmanagement GmbH. All Rights Reserved.