Class WikiPrincipal

java.lang.Object
org.apache.wiki.auth.WikiPrincipal
All Implemented Interfaces:
Serializable, Comparable<Principal>, Principal

public final class WikiPrincipal
extends Object
implements Principal, Comparable<Principal>, Serializable
A lightweight, immutable Principal class. WikiPrincipals can be created with and optional "type" to denote what type of user profile Principal it represents (FULL_NAME, WIKI_NAME, LOGIN_NAME). Types are used to determine suitable user and login Principals in classes like Session. However, the type property of a WikiPrincipal does not affect a WikiPrincipal's logical equality or hash code; two WikiPrincipals with the same name but different types are still considered equal.
Since:
2.2
See Also:
Serialized Form