Class PlatformAuthenticationToken
java.lang.Object
org.springframework.security.authentication.AbstractAuthenticationToken
com.cloudimpl.outstack.spring.security.PlatformAuthenticationToken
- All Implemented Interfaces:
java.io.Serializable,java.security.Principal,org.springframework.security.core.Authentication,org.springframework.security.core.CredentialsContainer
public class PlatformAuthenticationToken
extends org.springframework.security.authentication.AbstractAuthenticationToken
- Author:
- nuwan
- See Also:
- Serialized Form
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPlatformAuthenticationToken.TokenFlow -
Field Summary
Fields Modifier and Type Field Description static java.lang.StringTOKEN_CONTEXT_HEADER_NAME -
Constructor Summary
Constructors Constructor Description PlatformAuthenticationToken(AuthenticationMeta authMeta, java.lang.String principal, java.util.Collection<PlatformGrantedAuthority> authorities, UserDetail userDetail) -
Method Summary
Modifier and Type Method Description PlatformAuthenticationTokencopy(java.util.Collection<PlatformGrantedAuthority> authorities)AuthenticationMetagetAuthMeta()java.lang.ObjectgetCredentials()org.springframework.security.oauth2.jwt.JwtgetJwtToken()java.lang.ObjectgetPrincipal()java.lang.ObjectgetResponse()org.springframework.security.core.AuthenticationgetSystemToken()PlatformAuthenticationTokensetJwtToken(org.springframework.security.oauth2.jwt.Jwt jwtToken)PlatformAuthenticationTokensetResponse(java.lang.Object response)voidsetSystemToken(org.springframework.security.core.Authentication _systemToken)Methods inherited from class org.springframework.security.authentication.AbstractAuthenticationToken
equals, eraseCredentials, getAuthorities, getDetails, getName, hashCode, isAuthenticated, setAuthenticated, setDetails, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.security.Principal
implies
-
Field Details
-
TOKEN_CONTEXT_HEADER_NAME
public static final java.lang.String TOKEN_CONTEXT_HEADER_NAME- See Also:
- Constant Field Values
-
-
Constructor Details
-
PlatformAuthenticationToken
public PlatformAuthenticationToken(AuthenticationMeta authMeta, java.lang.String principal, java.util.Collection<PlatformGrantedAuthority> authorities, UserDetail userDetail)
-
-
Method Details
-
copy
public PlatformAuthenticationToken copy(java.util.Collection<PlatformGrantedAuthority> authorities) -
getCredentials
public java.lang.Object getCredentials() -
getPrincipal
public java.lang.Object getPrincipal() -
getAuthMeta
-
getJwtToken
public org.springframework.security.oauth2.jwt.Jwt getJwtToken() -
setJwtToken
public PlatformAuthenticationToken setJwtToken(org.springframework.security.oauth2.jwt.Jwt jwtToken) -
setResponse
-
getResponse
public java.lang.Object getResponse() -
getSystemToken
public org.springframework.security.core.Authentication getSystemToken() -
setSystemToken
public void setSystemToken(org.springframework.security.core.Authentication _systemToken)
-