Class UserSubject
java.lang.Object
org.apache.cxf.rs.security.oauth2.common.UserSubject
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
JwtUserSubject,OidcUserSubject,SamlUserSubject
Represents a login name which AuthorizationService
may capture after the end user approved a given third party request
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionUserSubject(String login) UserSubject(String login, String id) UserSubject(String login, String id, List<String> roles) UserSubject(String login, List<String> roles) UserSubject(UserSubject sub) -
Method Summary
Modifier and TypeMethodDescriptiongetId()Get the user's unique idgetLogin()Return the user login nameGet the list of additional user subject propertiesgetRoles()Return the optional list of user roles which may have been captured during the authentication processvoidvoidSet the users unique idvoidSet the user login namevoidsetProperties(Map<String, String> properties) Set the list of additional user subject propertiesvoidSet the optional list of user roles which may have been captured during the authentication process
-
Constructor Details
-
UserSubject
public UserSubject() -
UserSubject
-
UserSubject
-
UserSubject
-
UserSubject
-
UserSubject
-
-
Method Details
-
getLogin
Return the user login name- Returns:
- the login name
-
setLogin
Set the user login name- Parameters:
login- the login name
-
getRoles
Return the optional list of user roles which may have been captured during the authentication process- Returns:
- the list of roles
-
setRoles
Set the optional list of user roles which may have been captured during the authentication process- Parameters:
roles- the list of roles
-
getProperties
Get the list of additional user subject properties- Returns:
- the list of properties
-
setProperties
Set the list of additional user subject properties- Parameters:
properties- the properties
-
getId
Get the user's unique id- Returns:
- the user's id
-
setId
Set the users unique id- Parameters:
id- the user's id
-
getAuthenticationMethod
-
setAuthenticationMethod
-