Class GrantedAuthoritySid
- java.lang.Object
-
- org.springframework.security.acls.domain.GrantedAuthoritySid
-
- All Implemented Interfaces:
java.io.Serializable
,Sid
public class GrantedAuthoritySid extends java.lang.Object implements Sid
Represents aGrantedAuthority
as aSid
.This is a basic implementation that simply uses the
String
-based principal forSid
comparison. More complex principal objects may wish to provide an alternativeSid
implementation that uses some other identifier.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description GrantedAuthoritySid(java.lang.String grantedAuthority)
GrantedAuthoritySid(GrantedAuthority grantedAuthority)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object object)
Refer to thejava.lang.Object
documentation for the interface contract.java.lang.String
getGrantedAuthority()
int
hashCode()
Refer to thejava.lang.Object
documentation for the interface contract.java.lang.String
toString()
-
-
-
Constructor Detail
-
GrantedAuthoritySid
public GrantedAuthoritySid(java.lang.String grantedAuthority)
-
GrantedAuthoritySid
public GrantedAuthoritySid(GrantedAuthority grantedAuthority)
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object object)
Description copied from interface:Sid
Refer to thejava.lang.Object
documentation for the interface contract.
-
hashCode
public int hashCode()
Description copied from interface:Sid
Refer to thejava.lang.Object
documentation for the interface contract.
-
getGrantedAuthority
public java.lang.String getGrantedAuthority()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-