|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.sape.carboncontrib.security.User
An object containing properties of a system user.
Field Summary | |
private static int |
BUF_LEN
|
protected String |
credentials
Credentials of the user for authenticating to a service. |
protected String |
principal
Identity of the user for authenticating to a service, usually a username. |
Constructor Summary | |
User()
Default Constructor. |
|
User(String principal,
String credentials)
Constructs a User object using the supplied principal and credentials. |
Method Summary | |
String |
getCredentials()
Returns the user's credentials. |
String |
getPrincipal()
Returns the user's principal. |
void |
setCredentials(String credentials)
Sets the credentials. |
void |
setPrincipal(String principal)
Sets the principal. |
String |
toString()
Returns a String object representing the user. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private static final int BUF_LEN
protected String principal
protected String credentials
Constructor Detail |
public User()
public User(String principal, String credentials)
principal
- - Identity of the user for authenticating to a service.credentials
- - Credentials of the user for authenticating to a service.Method Detail |
public String getPrincipal()
public void setPrincipal(String principal)
principal
- The principal to setpublic String getCredentials()
public void setCredentials(String credentials)
credentials
- The credentials to setpublic String toString()
Returns a String object representing the user.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |