Java Reference
In-Depth Information
Table 9-2
Methods of the Password Class
ACCESS
RETURN DATA TYPE
METHOD
PARAMETERS
PURPOSE
public
boolean
getAutoExpires()
none
Returns value of autoExpires
attribute
public
void
setAutoExpires()
boolean
Sets value of autoExpires attribute
public
void
setExpired()
none
Sets value of expired attribute to
true
public
boolean
isExpired()
none
Returns value of expired attribute
public
int
getExpiresNotifyLimit()
none
Returns value of expiresNotifyLimit
attribute
public
void
setExpiresNotifyLimit()
int
Sets value of expiresNotifyLimit
attribute
public
int
getMaxHistory()
none
Returns value of maxHistory
attribute
public
void
setMaxHistory()
int
Sets value of maxHistory attribute;
reduces the size of the password
history list, if necessary
public
int
getHistorySize()
none
Returns the size of the ArrayList
containing the password history
public
int
getRemainingUses()
none
Returns value of the remainingUses
attribute
public
boolean
isExpiring()
none
Returns true if the password auto-
expires and the number of
remaining uses has reached the
limit at which the user should be
notified; otherwise, returns false
public
void
set()
String;
Sets the new password value if not
unencrypted
in the recently used history; deletes
new password
oldest password from history, if
value
necessary; resets expired and
remaining uses, if necessary
public
void
validate()
String;
Checks if password matches current
unencrypted
password; if password has expired;
password
if auto-expiring, reduces remaining
value
uses, and sets expired flag, if
necessary
private
void
verifyFormat()
String;
Verifies password length and format
unencrypted
meet requirements
password
value
private
String
encrypt()
String;
Encrypts password string
unencrypted
password
value
 
Search WWH ::




Custom Search