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 aGrantedAuthorityas aSid.This is a basic implementation that simply uses the
String-based principal forSidcomparison. More complex principal objects may wish to provide an alternativeSidimplementation that uses some other identifier.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description GrantedAuthoritySid(java.lang.String grantedAuthority)GrantedAuthoritySid(org.springframework.security.core.GrantedAuthority grantedAuthority)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object object)Refer to thejava.lang.Objectdocumentation for the interface contract.java.lang.StringgetGrantedAuthority()inthashCode()Refer to thejava.lang.Objectdocumentation for the interface contract.java.lang.StringtoString()
-
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object object)
Description copied from interface:SidRefer to thejava.lang.Objectdocumentation for the interface contract.
-
hashCode
public int hashCode()
Description copied from interface:SidRefer to thejava.lang.Objectdocumentation for the interface contract.
-
getGrantedAuthority
public java.lang.String getGrantedAuthority()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-