Class ConfluenceUserPrincipal
- java.lang.Object
-
- com.atlassian.confluence.security.seraph.ConfluenceUserPrincipal
-
- All Implemented Interfaces:
Serializable
,Principal
public class ConfluenceUserPrincipal extends Object implements Principal, Serializable
Principal that contains a user key.This class is saved in the session instead of
ConfluenceUser
in order to avoid bugs caused by the use of stale ConfluenceUser value from the session.- Since:
- 5.3
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ConfluenceUserPrincipal(ConfluenceUser user)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
String
getName()
com.atlassian.sal.api.user.UserKey
getUserKey()
int
hashCode()
static ConfluenceUserPrincipal
of(Principal principal)
String
toString()
-
-
-
Constructor Detail
-
ConfluenceUserPrincipal
public ConfluenceUserPrincipal(ConfluenceUser user)
-
-
Method Detail
-
toString
public String toString()
-
equals
public boolean equals(Object o)
-
hashCode
public int hashCode()
-
getUserKey
public com.atlassian.sal.api.user.UserKey getUserKey()
-
of
public static ConfluenceUserPrincipal of(Principal principal)
-
-