public interface AuthenticationSession extends Encodable, Serializable
| Modifier and Type | Method and Description |
|---|---|
Object |
getAttribute(String attributeName)
For viewers (in particular) to store additional attributes, analogous to
an HttpSession.
|
MessageBroker |
getMessageBroker()
The
MessageBroker that holds messages for this user. |
List<String> |
getRoles()
The roles this user belongs to
|
String |
getUserName()
The name of the authenticated user; for display purposes only.
|
String |
getValidationCode()
A unique code given to this session during authentication.
|
boolean |
hasUserNameOf(String userName) |
void |
setAttribute(String attributeName,
Object attribute) |
void |
setMessageBroker(MessageBroker messageBroker)
Providing the ability for a
MessageBroker to be set on this
AuthenticationSession (is lazily created by the runtime). |
String getUserName()
boolean hasUserNameOf(String userName)
String getValidationCode()
This 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).
Object getAttribute(String attributeName)
void setAttribute(String attributeName, Object attribute)
getAttribute(String)MessageBroker getMessageBroker()
MessageBroker that holds messages for this user.void setMessageBroker(MessageBroker messageBroker)
MessageBroker to be set on this
AuthenticationSession (is lazily created by the runtime).Copyright © 2010–2014 The Apache Software Foundation. All rights reserved.