|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.slamd.realm.CachedUser
This class implements a data structure used to store information about users that have been authenticated using the LDAPRealm realm implementation. The information stored includes an expiration time that can be used to prevent the information in the cached entry from becoming stale.
| Constructor Summary | |
CachedUser(java.lang.String userName,
java.lang.String userDN,
byte[] hashedPassword,
java.security.Principal userPrincipal,
long expirationTime)
Creates a new cached user with the specified information. |
|
| Method Summary | |
long |
getExpirationTime()
Retrieves the time at which this cached information should be considered expired. |
byte[] |
getHashedPassword()
Retrieves the SHA-1 hashed password for the user. |
java.lang.String |
getUserDN()
Retrieves the DN of the user's entry in the directory. |
java.lang.String |
getUserName()
Retrieves the user name provided by the user when authenticating. |
java.security.Principal |
getUserPrincipal()
Retrieves the Principal object associated with the user. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public CachedUser(java.lang.String userName,
java.lang.String userDN,
byte[] hashedPassword,
java.security.Principal userPrincipal,
long expirationTime)
userName - The username provided when authenticating.userDN - The DN of the user's entry in the directory server.hashedPassword - The password for the user as a SHA-1 hash.userPrincipal - The Principal object associated with this user.expirationTime - The time at which this cached user information
should expire.| Method Detail |
public java.lang.String getUserName()
public java.lang.String getUserDN()
public byte[] getHashedPassword()
public java.security.Principal getUserPrincipal()
public long getExpirationTime()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||