Class HvlAsyncTokenContextImpl
java.lang.Object
tr.com.havelsan.javarch.oauth.async.token.provider.context.HvlAsyncTokenContextImpl
- All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean
,HvlAsyncTokenContext
@Component
@Scope("singleton")
public class HvlAsyncTokenContextImpl
extends Object
implements HvlAsyncTokenContext, org.springframework.beans.factory.InitializingBean
The implementation class that holds the token data
-
Field Summary
Fields inherited from interface tr.com.havelsan.javarch.oauth.async.token.provider.context.HvlAsyncTokenContext
DEFAULT_AVAILABLE_ALL
-
Constructor Summary
ConstructorDescriptionHvlAsyncTokenContextImpl
(HvlAsyncTokenProperties asyncTokenProperties) Instantiates a new HvlAsyncTokenContextImpl. -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
Clear authentication.tr.com.havelsan.javarch.security.common.model.HvlAuthenticationToken
Gets authentication.Gets available feign target.Gets available url.boolean
Is enabled.void
setAuthentication
(tr.com.havelsan.javarch.security.common.model.HvlAuthenticationToken authenticationToken) Sets authentication.
-
Constructor Details
-
HvlAsyncTokenContextImpl
Instantiates a new HvlAsyncTokenContextImpl.- Parameters:
asyncTokenProperties
- the async token properties
-
-
Method Details
-
afterPropertiesSet
public void afterPropertiesSet()- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
-
isEnabled
public boolean isEnabled()Is enabled.- Specified by:
isEnabled
in interfaceHvlAsyncTokenContext
- Returns:
- the boolean
-
getAvailableUrl
Gets available url.- Specified by:
getAvailableUrl
in interfaceHvlAsyncTokenContext
- Returns:
- the available url
-
getAuthentication
public tr.com.havelsan.javarch.security.common.model.HvlAuthenticationToken getAuthentication()Gets authentication.- Specified by:
getAuthentication
in interfaceHvlAsyncTokenContext
- Returns:
- the authentication
-
getAvailableFeignTarget
Gets available feign target.- Specified by:
getAvailableFeignTarget
in interfaceHvlAsyncTokenContext
- Returns:
- the available feign target
-
setAuthentication
public void setAuthentication(tr.com.havelsan.javarch.security.common.model.HvlAuthenticationToken authenticationToken) Sets authentication.- Specified by:
setAuthentication
in interfaceHvlAsyncTokenContext
- Parameters:
authenticationToken
- the authentication token
-
clearAuthentication
public void clearAuthentication()Clear authentication.- Specified by:
clearAuthentication
in interfaceHvlAsyncTokenContext
-