Package com.enonic.xp.security.auth
Class AuthenticationInfo
- java.lang.Object
-
- com.enonic.xp.security.auth.AuthenticationInfo
-
- All Implemented Interfaces:
Serializable
@PublicApi public final class AuthenticationInfo extends Object implements Serializable
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAuthenticationInfo.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AuthenticationInfo.BuildercopyOf(AuthenticationInfo authInfo)static AuthenticationInfo.Buildercreate()booleanequals(Object o)PrincipalKeysgetPrincipals()UsergetUser()inthashCode()booleanhasRole(PrincipalKey role)booleanhasRole(String role)booleanisAuthenticated()static AuthenticationInfounAuthenticated()
-
-
-
Method Detail
-
isAuthenticated
public boolean isAuthenticated()
-
getUser
public User getUser()
-
getPrincipals
public PrincipalKeys getPrincipals()
-
hasRole
public boolean hasRole(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()
-
-