|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SessionAttributes
This interface defines the methods that classes with
SessionAttributes functionalities have to implement.
A SessionAttributes class defines the context in which a session
is being validated. The presence and the value of certain attributes can
influence whether the access to a secured resource is authorized or
prohibited for a particular user.
For example, regular users have access to everything besides ithe
administration interface. Resources that are restricted to administrators can
for example have a role attribute that is set to
admin. A SessionValidator instance can detect the
presence of this attribute and act accordingly to verify if the user has the
authorities of the required role (in this case, administrator rights).
SessionValidator| Method Summary | |
|---|---|
String |
getAttribute(String key)
Retrieves the value of a particular attribute. |
boolean |
hasAttribute(String key)
Checks if a certain attribute is present. |
| Method Detail |
|---|
boolean hasAttribute(String key)
key - The key that identifies the attribute.
true if the attribute was present; or
false otherwise.
getAttribute(String)String getAttribute(String key)
key - The key that identifies the attribute.
String instance with the value of the requested
attribute; or
null if the attribute couldn't be found.
hasAttribute(String)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||