public class AmbariUserAuthentication extends Object implements org.springframework.security.core.Authentication
| Constructor and Description |
|---|
AmbariUserAuthentication(String token,
AmbariUserDetails userDetails) |
AmbariUserAuthentication(String token,
AmbariUserDetails userDetails,
boolean authenticated) |
| Modifier and Type | Method and Description |
|---|---|
Collection<? extends org.springframework.security.core.GrantedAuthority> |
getAuthorities() |
String |
getCredentials() |
Object |
getDetails() |
String |
getName() |
AmbariUserDetails |
getPrincipal() |
Integer |
getUserId() |
boolean |
isAuthenticated() |
void |
setAuthenticated(boolean authenticated) |
public AmbariUserAuthentication(String token, AmbariUserDetails userDetails)
public AmbariUserAuthentication(String token, AmbariUserDetails userDetails, boolean authenticated)
public Collection<? extends org.springframework.security.core.GrantedAuthority> getAuthorities()
getAuthorities in interface org.springframework.security.core.Authenticationpublic String getCredentials()
getCredentials in interface org.springframework.security.core.Authenticationpublic Object getDetails()
getDetails in interface org.springframework.security.core.Authenticationpublic AmbariUserDetails getPrincipal()
getPrincipal in interface org.springframework.security.core.Authenticationpublic boolean isAuthenticated()
isAuthenticated in interface org.springframework.security.core.Authenticationpublic void setAuthenticated(boolean authenticated)
throws IllegalArgumentException
setAuthenticated in interface org.springframework.security.core.AuthenticationIllegalArgumentExceptionpublic Integer getUserId()
Copyright © 2022 Apache Software Foundation. All rights reserved.