public class PrincipalSid extends Object implements Sid
Authentication.getPrincipal() 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 |
|---|
PrincipalSid(Authentication authentication) |
PrincipalSid(String principal) |
public PrincipalSid(String principal)
public PrincipalSid(Authentication authentication)
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 getPrincipal()