Class PrincipalSid
- java.lang.Object
-
- org.springframework.security.acls.domain.PrincipalSid
-
- All Implemented Interfaces:
java.io.Serializable,Sid
public class PrincipalSid extends java.lang.Object implements Sid
Represents anAuthentication.getPrincipal()as 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 PrincipalSid(java.lang.String principal)PrincipalSid(org.springframework.security.core.Authentication authentication)
-
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.StringgetPrincipal()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.
-
getPrincipal
public java.lang.String getPrincipal()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-