@Deprecated public interface SecurityContext
SecurityContext
interface. This removes
the dependency between implementing classes and the modeshape-graph module.
This class is not thread-safe.
Modifier and Type | Method and Description |
---|---|
String |
getUserName()
Deprecated.
Returns the authenticated user's name
|
boolean |
hasRole(String roleName)
Deprecated.
Returns whether the authenticated user has the given role.
|
void |
logout()
Deprecated.
Logs the user out of the authentication mechanism.
|
String getUserName()
boolean hasRole(String roleName)
roleName
- the name of the role to checkvoid logout()
For some authentication mechanisms, this will be implemented as a no-op.
Copyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.