AWS credentials for API authentication.
Credentials class.
@author Denis Neuling (denisneuling@gmail.com)This class contains no default properties or methods, and serves as a base for multiple credential types. Typically credentials are supplied as a username and password, but other types are possible.
Another approach:
String username = ... char[] password = ... Credentials login = new Credentials(); login.setUsername(username); login.setPassword(password) //password char array is cleared automatically
For testing purposes you can construct Credentials
with help of {@link LoginDialog#show(String)}
Credentials login = LoginDialog.show("Gmail Login");
There are more methods of interest:
Credentials
stores the connection authentication info.
@author Vlad Mihalcea
@version %I%, %E%
@since 1.0
Authentication credentials.
This is just a marker interface, the current implementation has no methods.
@author Unascribed @author Mike Bowler @version $Revision: 1.9 $ $Date: 2004-04-18 19:51:38 -0400 (Sun, 18 Apr 2004) $The Credentials is an opaque object that represents the information a user asserts proves that the user is who it says it is. In CAS, any information that is to be presented for authentication must be wrapped (or implement) the Credentials interface. Credentials can contain a userid and password, or a Certificate, or an IP address, or a cookie value. Some credentials require validation, while others (such as container based or Filter based validation) are inherently trustworthy.
People who choose to implement their own Credentials object should take care that any toString() they implement does not accidentally expose confidential information. toString() can be called from various portions of the CAS code base, including logging statements, and thus toString should never contain anything confidential or anything that should not be logged.
Credentials objects that are included in CAS do NOT expose any confidential information. @author William G. Thompson, Jr. @version $Revision: 1.2 $ $Date: 2007/01/22 20:35:26 $ @since 3.0
This is a published and supported CAS Server 3 API.
Credentials
holds credentials information for a user.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|