gov.lanl.Authenticator
Interface UserListInterface

All Known Implementing Classes:
BasicUserList

public interface UserListInterface

Defines the interface for local user lists with optional timeouts and the ability to ask questions of status for individual entries.

 

Method Summary
 void addUserWithDigest(java.lang.String inUser, java.lang.String passDigest, java.lang.String inTarget)
          Add a user to the list with the current expiration duration; if the user/password/target combination is already in the list, just resets the expiration.
 void addUserWithPassword(java.lang.String inUser, java.lang.String inPassword, java.lang.String inTarget)
          Add a user to the list with the current expiration duration; if the user/password/target combination is already in the list, just resets the expiration.
 boolean isUserOk(java.lang.String inUser, java.lang.String inPassword, java.lang.String inTarget)
          Checks to see if the user is still ok, if not remove the entry
 void removeAll()
          Removes all entries from the list
 void removeExpired()
          Removes the expired entries from the list
 void setExpireDuration(int inDuration)
          Sets the exiration duration, may be interpreted by the impementation as it sees fit; days, hours, minutes...
 

Method Detail

setExpireDuration

public void setExpireDuration(int inDuration)
Sets the exiration duration, may be interpreted by the impementation as it sees fit; days, hours, minutes...

Parameters:
inDuration - is the duration value

removeExpired

public void removeExpired()
Removes the expired entries from the list


removeAll

public void removeAll()
Removes all entries from the list


addUserWithPassword

public void addUserWithPassword(java.lang.String inUser,
                                java.lang.String inPassword,
                                java.lang.String inTarget)
Add a user to the list with the current expiration duration; if the user/password/target combination is already in the list, just resets the expiration.

Parameters:
inUser - is the username
inPassword - is the user's password, not encrypted, implementation should encrypt it using some message digest function
inTarget - is the user's domain/target

addUserWithDigest

public void addUserWithDigest(java.lang.String inUser,
                              java.lang.String passDigest,
                              java.lang.String inTarget)
Add a user to the list with the current expiration duration; if the user/password/target combination is already in the list, just resets the expiration.

Parameters:
inUser - is the username
inTarget - is the user's domain/target

isUserOk

public boolean isUserOk(java.lang.String inUser,
                        java.lang.String inPassword,
                        java.lang.String inTarget)
Checks to see if the user is still ok, if not remove the entry

Parameters:
inUser - is the username
inPassword - is the user's password, not encrypted
inTarget - is the user's domain/target