Package org.apache.wiki.auth.acl
Class UnresolvedPrincipal
- java.lang.Object
- 
- org.apache.wiki.auth.acl.UnresolvedPrincipal
 
- 
- All Implemented Interfaces:
- java.io.Serializable,- java.security.Principal
 
 public final class UnresolvedPrincipal extends java.lang.Object implements java.security.Principal, java.io.Serializable 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 toUnresolvedPermission.- Since:
- 2.3
- See Also:
- Serialized Form
 
- 
- 
Constructor SummaryConstructors Constructor Description UnresolvedPrincipal(java.lang.String name)Constructs a new UnresolvedPrincipal instance.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)An unresolved principal is equal to another unresolved principal if their names match.java.lang.StringgetName()Returns the name of the principal.inthashCode()The hashCode of this object is equal to the hash code of its name.java.lang.StringtoString()Returns a String representation of the UnresolvedPrincipal.
 
- 
- 
- 
Constructor Detail- 
UnresolvedPrincipalpublic UnresolvedPrincipal(java.lang.String name) Constructs a new UnresolvedPrincipal instance.- Parameters:
- name- the name of the Principal
 
 
- 
 - 
Method Detail- 
getNamepublic java.lang.String getName() Returns the name of the principal.- Specified by:
- getNamein interface- java.security.Principal
- Returns:
- the name
- See Also:
- Principal.getName()
 
 - 
toStringpublic java.lang.String toString() Returns a String representation of the UnresolvedPrincipal.- Specified by:
- toStringin interface- java.security.Principal
- Overrides:
- toStringin class- java.lang.Object
- Returns:
- the String
 
 - 
equalspublic boolean equals(java.lang.Object obj) An unresolved principal is equal to another unresolved principal if their names match.- Specified by:
- equalsin interface- java.security.Principal
- Overrides:
- equalsin class- java.lang.Object
- Parameters:
- obj- the object to compare to this one
- Returns:
- the result of the equality test
- See Also:
- Object.equals(java.lang.Object)
 
 - 
hashCodepublic int hashCode() The hashCode of this object is equal to the hash code of its name.- Specified by:
- hashCodein interface- java.security.Principal
- Overrides:
- hashCodein class- java.lang.Object
- Returns:
- the hash code
 
 
- 
 
-