|
02/28/2005 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Abstraction that knows how to obtain authentication of an account. Account information is stored in a data source, which can be SQL, LDAP, or an NT domain. This interface also includes methods for creating, removing, and changing account information on the data source. There is an implementation of this interface for each data source that the system supports.
| Method Summary | |
void |
authenticate(String logon,
String password)
Checks if the current user account is authentic. |
void |
authenticate(String logon,
String password,
String domain)
Deprecated. As of version 4.0, to be removed in 8.0 or later. Instead, use Authenticator.authenticate(java.lang.String logon, java.lang.String password). |
void |
changePassword(String logon,
String newPassword)
Sets the password for the account in the given realm. |
void |
createAccount(String logon,
String password,
Map attributes)
Creates an account with the given logon and password. |
boolean |
doesAccountExist(String logon)
Checks whether an account exists with the given logon |
String |
getID()
Returns a unique identifier for this Authenticator. |
String |
getName()
Deprecated. As of version 4.0, to be removed in 8.0 or later. Instead use getID, |
void |
init(Realm realm,
Properties props)
Initializes the authenticator. |
void |
removeAccount(String logon)
Removes the account with the given logon. |
boolean |
requiresDomain()
Deprecated. As of version 4.0, to be removed in 8.0 or later. No Replacement, since Realms are now being used. |
String |
retrieveForgottenPassword(String logon)
Either returns the current password for the given account (if the authenticator uses bidirectional encryption) or generates a new password and updates the authenticator with the new password (if the authenticator uses unidirectional encryption). |
| Method Detail |
public void authenticate(String logon,
String password,
String domain)
throws AuthenticationException
Authenticator.authenticate(java.lang.String logon, java.lang.String password).
logon - - The user ID supplied by the user.password - - The plain text typed password supplied by the user.domain - - The domain supplied by the user during logon, or null if not
supplied. Domain is an optional field that most Authenticators do not need.public String getName()
Authenticator.getID()public boolean requiresDomain()
public void init(Realm realm,
Properties props)
throws AuthenticationException
AuthenticationManager before any other method.realm - Realm against which this authenticator authenticates its usersprops - Properties passed in by the AuthenticationManagerAuthenticationManager
public void authenticate(String logon,
String password)
throws InvalidAccountException,
AuthenticationException
logon - Identifier for the accountpassword - Plain-text, typed password for the account
public void createAccount(String logon,
String password,
Map attributes)
throws AccountExistsException,
AuthenticationException
logon - Identifier for this accountpassword - Plain-text, typed password for this accountattributes - Any attributes other than logon and password needed to create an account. The keys of
attributes should map to AccountPropertyDescriptor IDs.Realm.supportsFeature(java.lang.String)
public void removeAccount(String logon)
throws AccountDoesNotExistException,
AuthenticationException
logon - Identifier for the accountRealm.supportsFeature(java.lang.String)
public void changePassword(String logon,
String newPassword)
throws AuthenticationException
logon - Identifier for the accountnewpassword - New plain-text, typed password for the accountRealm.supportsFeature(java.lang.String)
public String retrieveForgottenPassword(String logon)
throws AuthenticationException
logon - Identifier for the accountRealm.supportsFeature(java.lang.String)
public boolean doesAccountExist(String logon)
throws AuthenticationException
public String getID()
Realm
|
02/28/2005 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||