ccc.api.types
Class Password

java.lang.Object
  extended by ccc.api.types.Password

public final class Password
extends java.lang.Object

A password value type.

Author:
Civic Computing Ltd.

Method Summary
static boolean hasOnlyValidChars(java.lang.String pw)
          Test that a string has valid characters.
static boolean isStrong(java.lang.String pw)
          Test that a string is strong enough to be used as a password.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isStrong

public static boolean isStrong(java.lang.String pw)
Test that a string is strong enough to be used as a password.

Parameters:
pw - The string to test.
Returns:
True if the string is strong enough, false otherwise.

hasOnlyValidChars

public static boolean hasOnlyValidChars(java.lang.String pw)
Test that a string has valid characters.

Parameters:
pw - The string to test.
Returns:
True if the string contains only valid chars, false otherwise.


Copyright © 2010. All Rights Reserved.