public class DefaultAuthenticationHolder extends Object implements AuthContext.AuthenticationHolder
AuthContext.AuthenticationHolder implementation.| Constructor and Description |
|---|
DefaultAuthenticationHolder() |
| Modifier and Type | Method and Description |
|---|---|
Optional<Authentication> |
getAuthentication()
Get the current
Authentication. |
void |
setAuthentication(Authentication authentication)
Set the current
Authentication. |
public Optional<Authentication> getAuthentication()
AuthContext.AuthenticationHolderAuthentication.getAuthentication in interface AuthContext.AuthenticationHolderAuthentication, empty if not presentpublic void setAuthentication(Authentication authentication)
AuthContext.AuthenticationHolderAuthentication.setAuthentication in interface AuthContext.AuthenticationHolderauthentication - The authentication to set (may be null)Copyright © 2019 The Holon Platform. All rights reserved.