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()
GrantedAuthority
getAuthority
in interface GrantedAuthority
public java.lang.String getDisplayName()
GrantedAuthority
getDisplayName
in interface GrantedAuthority
public GrantedAuthority.RoleScope getScope()
GrantedAuthority
getScope
in interface GrantedAuthority
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in interface GrantedAuthority
toString
in class java.lang.Object