public class SimpleGrantedAuthority extends java.lang.Object implements GrantedAuthority
GrantedAuthority.RoleScope| Constructor and Description |
|---|
SimpleGrantedAuthority(java.lang.String authorityName,
java.lang.String displayName,
GrantedAuthority.RoleScope scope) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAuthority()
Get this GrantedAuthority's name.
|
java.lang.String |
getDisplayName()
Returns this GrantedAuthority's display name.
|
GrantedAuthority.RoleScope |
getScope()
Returns the scope of this authority: Globally-defined by the SDK, or partner-specific
|
int |
hashCode() |
java.lang.String |
toString() |
public SimpleGrantedAuthority(java.lang.String authorityName,
java.lang.String displayName,
GrantedAuthority.RoleScope scope)
public java.lang.String getAuthority()
GrantedAuthoritygetAuthority in interface GrantedAuthoritypublic java.lang.String getDisplayName()
GrantedAuthoritygetDisplayName in interface GrantedAuthoritypublic GrantedAuthority.RoleScope getScope()
GrantedAuthoritygetScope in interface GrantedAuthoritypublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in interface GrantedAuthoritytoString in class java.lang.Object