public interface UserPrincipal
extends java.io.Serializable
Serializable interface to allow
instances to be easily pass around between Activity and
Fragment using Bundle.| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getAccessToken()
Returns the token that will allow access to other services.
|
java.lang.String |
getEmail()
Returns the email
|
java.lang.String |
getIdentityToken()
Returns the users identity token.
|
java.lang.String |
getName()
Returns the username
|
java.lang.String |
getRefreshToken()
Returns the users refresh token.
|
java.util.Set<UserRole> |
getRoles()
Returns the roles associated with this principal
|
boolean |
hasClientRole(java.lang.String role,
java.lang.String clientId)
Checks if the user has the specified Client role.
|
boolean |
hasRealmRole(java.lang.String role)
Checks if the user has the specified Realm role.
|
boolean hasClientRole(java.lang.String role,
java.lang.String clientId)
role - role to be checkedclientId - clientID related to roleboolean hasRealmRole(java.lang.String role)
role - role to be checkedjava.lang.String getName()
java.lang.String getEmail()
java.util.Set<UserRole> getRoles()
java.lang.String getAccessToken()
java.lang.String getIdentityToken()
java.lang.String getRefreshToken()