AuthenticatedUser
instead@Deprecated public class AuthenticationInformation extends Object
Authenticator.authenticate(String, String)
method and contains information about the authenticated
user. The only required fields are id
and login
.
The id
may or may not be the same as the login
,
but must be a unique string identifying the user.
If the implementation supports extra information, ie. the call to
Authenticator.supportsExtraInformation()
returns TRUE, the other fields may also contain information.
Modifier and Type | Field and Description |
---|---|
String |
address
Deprecated.
The postal address to the user.
|
String |
description
Deprecated.
A description of the user.
|
String |
email
Deprecated.
The email address to the user.
|
String |
fax
Deprecated.
The fax number to the user.
|
boolean |
hasExtraInfo
Deprecated.
TRUE if the extra information has been provided, FALSE if not.
|
String |
id
Deprecated.
A unique id for the user in the authentication system.
|
String |
login
Deprecated.
The login for the user.
|
String |
name
Deprecated.
The full name of the user.
|
String |
organisation
Deprecated.
The organisation of the user.
|
String |
phone
Deprecated.
The phone number to the user.
|
String |
url
Deprecated.
An URL to the user homepage (or similar).
|
Constructor and Description |
---|
AuthenticationInformation(String login,
String id)
Deprecated.
Creates a new
AuthenticationInformation object without
extra information. |
AuthenticationInformation(String login,
String id,
String name,
String organisation,
String address,
String phone,
String fax,
String email,
String url,
String description)
Deprecated.
Creates a new
AuthenticationInformation object with extra
information. |
public final boolean hasExtraInfo
public final String id
public final String login
id
.public final String name
public final String organisation
public final String address
public final String phone
public final String fax
public final String email
public final String url
public final String description
public AuthenticationInformation(String login, String id)
AuthenticationInformation
object without
extra information.public AuthenticationInformation(String login, String id, String name, String organisation, String address, String phone, String fax, String email, String url, String description)
AuthenticationInformation
object with extra
information.login
- The login
nameid
- The unique id
of the username
- The name
of the userorganisation
- The organisation
of the useraddress
- The address
of the userphone
- The phone
of the userfax
- The fax
of the useremail
- The email
of the userurl
- The url
of the userdescription
- The description
of the userNullPointerException
- If the login or id is nullprivate static boolean allNull(Object... objects)