Class HvlAsyncTokenProperties
java.lang.Object
tr.com.havelsan.javarch.oauth.async.token.provider.configuration.properties.HvlAsyncTokenProperties
- All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean
@Component
@ConfigurationProperties("hvl.oauth.auth.async-token")
public class HvlAsyncTokenProperties
extends Object
implements org.springframework.beans.factory.InitializingBean
Properties of Async Token Header
-
Constructor Summary
ConstructorDescriptionHvlAsyncTokenProperties
(HvlAsyncTokenHeaderProperties asyncTokenHeaderProperties) Instantiates a new HvlAsyncTokenProperties. -
Method Summary
Modifier and TypeMethodDescriptionvoid
After properties set.Gets api key.Gets async token header properties.int
Gets retry count.Gets available feign target.Gets available url.Gets password.Gets profile id.Gets username.boolean
Is enabled.void
Sets api key.void
setAuthenticationRetryCount
(int authenticationRetryCount) Sets retry count.void
setAvailableFeignTarget
(List<String> availableFeignTarget) Sets available feign target.void
setAvailableUrl
(List<String> availableUrl) Sets available url.void
setEnabled
(boolean enabled) Sets enabled.void
setPassword
(String password) Sets password.void
setProfileId
(Long profileId) Sets profile id.void
setUsername
(String username) Sets username.
-
Constructor Details
-
HvlAsyncTokenProperties
Instantiates a new HvlAsyncTokenProperties.- Parameters:
asyncTokenHeaderProperties
- the async token header properties
-
-
Method Details
-
afterPropertiesSet
public void afterPropertiesSet()After properties set.- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
-
isEnabled
public boolean isEnabled()Is enabled.- Returns:
- the boolean
-
setEnabled
public void setEnabled(boolean enabled) Sets enabled.- Parameters:
enabled
- the enabled
-
getUsername
Gets username.- Returns:
- the username
-
setUsername
Sets username.- Parameters:
username
- the username
-
getPassword
Gets password.- Returns:
- the password
-
setPassword
Sets password.- Parameters:
password
- the password
-
getProfileId
Gets profile id.- Returns:
- the profile id
-
setProfileId
Sets profile id.- Parameters:
profileId
- the profile id
-
getAuthenticationRetryCount
public int getAuthenticationRetryCount()Gets retry count.- Returns:
- the retry count
-
setAuthenticationRetryCount
public void setAuthenticationRetryCount(int authenticationRetryCount) Sets retry count.- Parameters:
authenticationRetryCount
- the retry count
-
getAvailableUrl
Gets available url.- Returns:
- the available url
-
setAvailableUrl
Sets available url.- Parameters:
availableUrl
- the available url
-
getAvailableFeignTarget
Gets available feign target.- Returns:
- the available feign target
-
setAvailableFeignTarget
Sets available feign target.- Parameters:
availableFeignTarget
- the available feign target
-
getAsyncTokenHeaderProperties
Gets async token header properties.- Returns:
- the async token header properties
-
getApiKey
Gets api key.- Returns:
- the api key
-
setApiKey
Sets api key.- Parameters:
apiKey
- the api key
-