Package org.apache.wiki.auth.acl
Class UnresolvedPrincipal
java.lang.Object
org.apache.wiki.auth.acl.UnresolvedPrincipal
- All Implemented Interfaces:
Serializable
,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. Conceptually,
UnresolvedPrincipal performs a function similar to
UnresolvedPermission
.- Since:
- 2.3
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionUnresolvedPrincipal
(String name) Constructs a new UnresolvedPrincipal instance. -
Method Summary
Modifier and TypeMethodDescriptionboolean
An unresolved principal is equal to another unresolved principal if their names match.getName()
Returns the name of the principal.int
hashCode()
The hashCode of this object is equal to the hash code of its name.toString()
Returns a String representation of the UnresolvedPrincipal.
-
Constructor Details
-
UnresolvedPrincipal
Constructs a new UnresolvedPrincipal instance.- Parameters:
name
- the name of the Principal
-
-
Method Details
-
getName
Returns the name of the principal. -
toString
Returns a String representation of the UnresolvedPrincipal. -
equals
An unresolved principal is equal to another unresolved principal if their names match. -
hashCode
The hashCode of this object is equal to the hash code of its name.
-