Class HvlAuthJwtAuthenticationServiceImpl
java.lang.Object
tr.com.havelsan.javarch.oauth.auth.starter.jwt.service.HvlAuthJwtAuthenticationServiceImpl
- All Implemented Interfaces:
HvlAuthAuthenticationService
@Service
public class HvlAuthJwtAuthenticationServiceImpl
extends Object
implements HvlAuthAuthenticationService
The class which implements
HvlAuthAuthenticationService
.-
Constructor Summary
ConstructorDescriptionHvlAuthJwtAuthenticationServiceImpl
(HvlOAuthUserManager userManager, HvlOAuthSystemUserManager systemUserManager, tr.com.havelsan.javarch.jwt.generator.HvlJwtGenerator jwtGenerator, HvlAuthAuthenticatorService authenticatorService, HvlAuthVerificationService verificationService, HvlOAuthSettingIntegrationProvider settingIntegrationProvider, HvlSessionDataProvider sessionDataProvider, tr.com.havelsan.javarch.jwt.security.configuration.properties.HvlJwtCookieProperties jwtCookieProperties, tr.com.havelsan.javarch.jwt.security.configuration.properties.HvlJwtHeaderProperties jwtHeaderProperties, HvlOAuthCaptchaService captchaService, HvlOAuthCaptchaImageProviderService captchaImageProviderService, HvlOAuthCaptchaVerificationProperties captchaVerificationProperties) Instantiates a new HvlAuthJwtAuthenticationServiceImpl. -
Method Summary
Modifier and TypeMethodDescriptioncompleteLoginWithCode
(@NotNull @Valid HvlAuthVerificationRequestModel verificationRequestModel) The method provides that to be login user's using two factor authenticaiton code.Gets captcha image string.login
(@NotNull @Valid HvlAuthAuthenticationRequestModel authenticationRequestModel) The method provides that user get login the systemvoid
The method provides that to be deleted user's security identity.void
refresh()
The method provides that to be refreshed user's security identity.
-
Constructor Details
-
HvlAuthJwtAuthenticationServiceImpl
public HvlAuthJwtAuthenticationServiceImpl(HvlOAuthUserManager userManager, HvlOAuthSystemUserManager systemUserManager, tr.com.havelsan.javarch.jwt.generator.HvlJwtGenerator jwtGenerator, HvlAuthAuthenticatorService authenticatorService, HvlAuthVerificationService verificationService, HvlOAuthSettingIntegrationProvider settingIntegrationProvider, HvlSessionDataProvider sessionDataProvider, tr.com.havelsan.javarch.jwt.security.configuration.properties.HvlJwtCookieProperties jwtCookieProperties, tr.com.havelsan.javarch.jwt.security.configuration.properties.HvlJwtHeaderProperties jwtHeaderProperties, HvlOAuthCaptchaService captchaService, HvlOAuthCaptchaImageProviderService captchaImageProviderService, HvlOAuthCaptchaVerificationProperties captchaVerificationProperties) Instantiates a new HvlAuthJwtAuthenticationServiceImpl.- Parameters:
userManager
- the user managersystemUserManager
- the system user managerjwtGenerator
- the jwt generatorauthenticatorService
- the authenticator serviceverificationService
- the verification servicesettingIntegrationProvider
- the setting integration providersessionDataProvider
- the session data providerjwtCookieProperties
- the jwt cookie propertiesjwtHeaderProperties
- the jwt header propertiescaptchaService
- the captcha servicecaptchaImageProviderService
- the captcha image provider servicecaptchaVerificationProperties
- the captcha setting properties
-
-
Method Details
-
login
public HvlAuthAuthenticationResponseModel login(@NotNull @Valid @NotNull @Valid HvlAuthAuthenticationRequestModel authenticationRequestModel) The method provides that user get login the system- Specified by:
login
in interfaceHvlAuthAuthenticationService
- Parameters:
authenticationRequestModel
- the authentication request model- Returns:
- the authentication response model
-
completeLoginWithCode
@Validated(Validation.class) public HvlAuthAuthenticationResponseModel completeLoginWithCode(@NotNull @Valid @NotNull @Valid HvlAuthVerificationRequestModel verificationRequestModel) The method provides that to be login user's using two factor authenticaiton code.- Specified by:
completeLoginWithCode
in interfaceHvlAuthAuthenticationService
- Parameters:
verificationRequestModel
- the verification request model- Returns:
- the authentication response model
-
refresh
public void refresh()The method provides that to be refreshed user's security identity.- Specified by:
refresh
in interfaceHvlAuthAuthenticationService
-
logout
The method provides that to be deleted user's security identity.- Specified by:
logout
in interfaceHvlAuthAuthenticationService
- Parameters:
redirect
- Re-direct url info
-
getCaptchaImageString
Gets captcha image string.- Specified by:
getCaptchaImageString
in interfaceHvlAuthAuthenticationService
- Returns:
- the captcha image string
-