@Beta
public final class AuthenticationInfo
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
AuthenticationInfo.Builder |
Modifier and Type | Method and 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() |
public boolean isAuthenticated()
public User getUser()
public PrincipalKeys getPrincipals()
public boolean hasRole(java.lang.String role)
public boolean hasRole(PrincipalKey role)
public static AuthenticationInfo.Builder create()
public static AuthenticationInfo.Builder copyOf(AuthenticationInfo authInfo)
public static AuthenticationInfo unAuthenticated()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object