|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nakedobjects.metamodel.authentication.AuthenticationSessionAbstract
public abstract class AuthenticationSessionAbstract
| Constructor Summary | |
|---|---|
AuthenticationSessionAbstract(DataInputExtended input)
|
|
AuthenticationSessionAbstract(java.lang.String name,
java.util.List<java.lang.String> roles,
java.lang.String code)
|
|
AuthenticationSessionAbstract(java.lang.String name,
java.lang.String code)
|
|
| Method Summary | |
|---|---|
void |
encode(DataOutputExtended output)
Returns the domain object's value as an encoded byte array via the encoder. |
java.lang.Object |
getAttribute(java.lang.String attributeName)
For viewers (in particular) to store additional attributes, analogous to an HttpSession. |
java.util.List<java.lang.String> |
getRoles()
Can be overridden. |
java.lang.String |
getUserName()
The name of the authenticated user; for display purposes only. |
java.lang.String |
getValidationCode()
A unique code given to this session during authentication. |
boolean |
hasUserNameOf(java.lang.String userName)
|
void |
setAttribute(java.lang.String attributeName,
java.lang.Object attribute)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AuthenticationSessionAbstract(java.lang.String name,
java.lang.String code)
public AuthenticationSessionAbstract(java.lang.String name,
java.util.List<java.lang.String> roles,
java.lang.String code)
public AuthenticationSessionAbstract(DataInputExtended input)
throws java.io.IOException
java.io.IOException| Method Detail |
|---|
public void encode(DataOutputExtended output)
throws java.io.IOException
Encodable
encode in interface Encodablejava.io.IOExceptionpublic java.lang.String getUserName()
AuthenticationSession
getUserName in interface AuthenticationSessionpublic boolean hasUserNameOf(java.lang.String userName)
hasUserNameOf in interface AuthenticationSessionpublic java.util.List<java.lang.String> getRoles()
getRoles in interface AuthenticationSessionpublic java.lang.String getValidationCode()
AuthenticationSessionThis can be used to confirm that this session has been properly created and the user has been authenticated. It should return an empty string ("") if this is unauthenticated user (i.e., as created within an exploration system).
getValidationCode in interface AuthenticationSessionpublic java.lang.Object getAttribute(java.lang.String attributeName)
AuthenticationSession
getAttribute in interface AuthenticationSession
public void setAttribute(java.lang.String attributeName,
java.lang.Object attribute)
setAttribute in interface AuthenticationSessionAuthenticationSession.getAttribute(String)public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||