org.acegisecurity.acls.sid
Class GrantedAuthoritySid
java.lang.Object
org.acegisecurity.acls.sid.GrantedAuthoritySid
- All Implemented Interfaces:
- Sid
public class GrantedAuthoritySid
- extends java.lang.Object
- implements Sid
Represents a 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.
- Version:
- $Id: GrantedAuthoritySid.java 1754 2006-11-17 02:01:21Z benalex $
- Author:
- Ben Alex
Method Summary |
boolean |
equals(java.lang.Object object)
Refer to the java.lang.Object documentation for the interface contract. |
java.lang.String |
getGrantedAuthority()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.acegisecurity.acls.sid.Sid |
hashCode |
GrantedAuthoritySid
public GrantedAuthoritySid(java.lang.String grantedAuthority)
GrantedAuthoritySid
public GrantedAuthoritySid(GrantedAuthority grantedAuthority)
equals
public boolean equals(java.lang.Object object)
- Description copied from interface:
Sid
- Refer to the
java.lang.Object
documentation for the interface contract.
- Specified by:
equals
in interface Sid
- Overrides:
equals
in class java.lang.Object
- Parameters:
object
- to be compared
- Returns:
true
if the objects are equal, false
otherwise
getGrantedAuthority
public java.lang.String getGrantedAuthority()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 2004-2012 Interface21, Inc. All Rights Reserved.