Package com.enonic.xp.security.auth
Class AuthenticationInfo
- java.lang.Object
-
- com.enonic.xp.security.auth.AuthenticationInfo
-
- All Implemented Interfaces:
java.io.Serializable
@Beta public final class AuthenticationInfo extends java.lang.Object implements java.io.Serializable
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AuthenticationInfo.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AuthenticationInfo.Builder
copyOf(AuthenticationInfo authInfo)
static AuthenticationInfo.Builder
create()
boolean
equals(java.lang.Object o)
PrincipalKeys
getPrincipals()
User
getUser()
int
hashCode()
boolean
hasRole(PrincipalKey role)
boolean
hasRole(java.lang.String role)
boolean
isAuthenticated()
static AuthenticationInfo
unAuthenticated()
-
-
-
Method Detail
-
isAuthenticated
public boolean isAuthenticated()
-
getUser
public User getUser()
-
getPrincipals
public PrincipalKeys getPrincipals()
-
hasRole
public boolean hasRole(java.lang.String role)
-
hasRole
public boolean hasRole(PrincipalKey role)
-
create
public static AuthenticationInfo.Builder create()
-
copyOf
public static AuthenticationInfo.Builder copyOf(AuthenticationInfo authInfo)
-
unAuthenticated
public static AuthenticationInfo unAuthenticated()
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-