org.apache.cxf.rs.security.oauth2.common
Class UserSubject
java.lang.Object
org.apache.cxf.rs.security.oauth2.common.UserSubject
public class UserSubject
- extends Object
Represents a login name which AuthorizationService
may capture after the end user approved a given third party request
|
Method Summary |
String |
getLogin()
Returns the user login name |
List<String> |
getRoles()
Returns the optional list of user roles which may have
been captured during the authentication process |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UserSubject
public UserSubject(String login)
UserSubject
public UserSubject(String login,
List<String> roles)
getLogin
public String getLogin()
- Returns the user login name
- Returns:
- the login name
getRoles
public List<String> getRoles()
- Returns the optional list of user roles which may have
been captured during the authentication process
- Returns:
- the list of roles
Apache CXF