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.Authentication
public String getCredentials()
getCredentials
in interface org.springframework.security.core.Authentication
public Object getDetails()
getDetails
in interface org.springframework.security.core.Authentication
public AmbariUserDetails getPrincipal()
getPrincipal
in interface org.springframework.security.core.Authentication
public boolean isAuthenticated()
isAuthenticated
in interface org.springframework.security.core.Authentication
public void setAuthenticated(boolean authenticated) throws IllegalArgumentException
setAuthenticated
in interface org.springframework.security.core.Authentication
IllegalArgumentException
public Integer getUserId()
Copyright © 2022 Apache Software Foundation. All rights reserved.