public class AuthenticationState extends Object
Modifier and Type | Method and Description |
---|---|
static AuthenticationState |
authenticated() |
static AuthenticationState |
authenticated(Principal principal)
Create successful authentication state containing a user.
|
boolean |
equals(Object o) |
com.google.common.base.Optional<Principal> |
getAuthenticatedPrincipal() |
int |
hashCode() |
boolean |
isAuthenticated() |
static AuthenticationState |
unauthenticated() |
public static AuthenticationState authenticated(Principal principal)
principal
- authenticate userpublic static AuthenticationState authenticated()
public static AuthenticationState unauthenticated()
public boolean isAuthenticated()
public com.google.common.base.Optional<Principal> getAuthenticatedPrincipal()
Copyright © 2020 Atlassian. All rights reserved.