|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectch.epfl.tequila.client.model.TequilaPrincipal
public final class TequilaPrincipal
Principal holding the values returned by the Tequila server after a successful authentification.
Principal
Constructor Summary | |
---|---|
TequilaPrincipal()
|
Method Summary | |
---|---|
java.lang.String |
getAttribute(java.lang.String name)
Returns the attribute having the given name. |
java.util.Map |
getAttributes()
Returns the user attributes. |
java.lang.String |
getHost()
Returns the host the user is coming from. |
java.lang.String |
getName()
Returns the user name. |
java.lang.String |
getOrg()
Returns the organization that did the actual authentication. |
java.lang.String |
getUser()
Returns the user name. |
void |
setAttributes(java.util.Map attributes)
Sets the user attributes. |
void |
setHost(java.lang.String host)
Sets the user host. |
void |
setOrg(java.lang.String org)
Sets the organization that did the actual authentication. |
void |
setUser(java.lang.String user)
Sets the user name. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.security.Principal |
---|
equals, hashCode |
Constructor Detail |
---|
public TequilaPrincipal()
Method Detail |
---|
public java.lang.String getUser()
public void setUser(java.lang.String user)
user
- the user name.public java.lang.String getName()
getName
in interface java.security.Principal
public java.lang.String getHost()
public void setHost(java.lang.String host)
host
- the user host.public java.lang.String getOrg()
public void setOrg(java.lang.String org)
org
- the organization that did the actual authentication.public java.util.Map getAttributes()
public void setAttributes(java.util.Map attributes)
attributes
- the user attributes.public java.lang.String getAttribute(java.lang.String name)
name
- the attribute name.
public java.lang.String toString()
toString
in interface java.security.Principal
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |