Class UserAuthentication
- java.lang.Object
-
- org.odpi.openmetadata.userinterface.uichassis.springboot.auth.UserAuthentication
-
- All Implemented Interfaces:
Serializable,Principal,org.springframework.security.core.Authentication
public class UserAuthentication extends Object implements org.springframework.security.core.Authentication
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UserAuthentication(TokenUser user)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<? extends org.springframework.security.core.GrantedAuthority>getAuthorities()ObjectgetCredentials()TokenUsergetDetails()StringgetName()ObjectgetPrincipal()booleanisAuthenticated()voidsetAuthenticated(boolean authenticated)
-
-
-
Constructor Detail
-
UserAuthentication
public UserAuthentication(TokenUser user)
-
-
Method Detail
-
getAuthorities
public Collection<? extends org.springframework.security.core.GrantedAuthority> getAuthorities()
- Specified by:
getAuthoritiesin interfaceorg.springframework.security.core.Authentication
-
getCredentials
public Object getCredentials()
- Specified by:
getCredentialsin interfaceorg.springframework.security.core.Authentication
-
getDetails
public TokenUser getDetails()
- Specified by:
getDetailsin interfaceorg.springframework.security.core.Authentication
-
getPrincipal
public Object getPrincipal()
- Specified by:
getPrincipalin interfaceorg.springframework.security.core.Authentication
-
isAuthenticated
public boolean isAuthenticated()
- Specified by:
isAuthenticatedin interfaceorg.springframework.security.core.Authentication
-
setAuthenticated
public void setAuthenticated(boolean authenticated)
- Specified by:
setAuthenticatedin interfaceorg.springframework.security.core.Authentication
-
-