com.ecyrd.jspwiki.auth.acl
Class UnresolvedPrincipal
java.lang.Object
com.ecyrd.jspwiki.auth.acl.UnresolvedPrincipal
- All Implemented Interfaces:
- Principal
public final class UnresolvedPrincipal
- extends Object
- implements Principal
Represents a Principal, typically read from an ACL, that cannot
be resolved based on the current state of the user database, group
manager, and built-in role definitions.
Creating a principal marked "unresolved" allows
delayed resolution, which enables principals to be resolved
lazily during a later access control check. Conceptuallly,
UnresolvedPrincipal performs a function similar to
UnresolvedPermission
.
- Since:
- 2.3
- Version:
- $Revision: 1.3 $ $Date: 2005/08/07 22:06:09 $
- Author:
- Andrew Jaquith
Method Summary |
boolean |
equals(Object obj)
An unresolved principal is equal to another
unresolved principal if their names match. |
String |
getName()
Returns the name of the principal. |
String |
toString()
|
UnresolvedPrincipal
public UnresolvedPrincipal(String name)
- Constructs a new UnresolvedPrincipal instance.
- Parameters:
name
- the name of the Principal
getName
public final String getName()
- Returns the name of the principal.
- Specified by:
getName
in interface Principal
- See Also:
Principal.getName()
toString
public final String toString()
- Specified by:
toString
in interface Principal
- Overrides:
toString
in class Object
equals
public final boolean equals(Object obj)
- An unresolved principal is equal to another
unresolved principal if their names match.
- Specified by:
equals
in interface Principal
- Overrides:
equals
in class Object
- See Also:
Object.equals(java.lang.Object)