public class GrantedAuthoritySid extends Object implements Sid
GrantedAuthority as a Sid.
This is a basic implementation that simply uses the String-based principal
for Sid comparison. More complex principal objects may wish to provide an
alternative Sid implementation that uses some other identifier.
| Constructor and Description |
|---|
GrantedAuthoritySid(org.springframework.security.core.GrantedAuthority grantedAuthority) |
GrantedAuthoritySid(String grantedAuthority) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object object)
Refer to the
java.lang.Object documentation for the interface
contract. |
String |
getGrantedAuthority() |
int |
hashCode()
Refer to the
java.lang.Object documentation for the interface
contract. |
String |
toString() |
public GrantedAuthoritySid(String grantedAuthority)
public GrantedAuthoritySid(org.springframework.security.core.GrantedAuthority grantedAuthority)
public boolean equals(Object object)
Sidjava.lang.Object documentation for the interface
contract.public int hashCode()
Sidjava.lang.Object documentation for the interface
contract.public String getGrantedAuthority()