Class HvlAsyncTokenAuthenticationServiceImpl
java.lang.Object
tr.com.havelsan.javarch.oauth.async.token.provider.service.HvlAsyncTokenAuthenticationServiceImpl
- All Implemented Interfaces:
HvlAsyncTokenAuthenticationService
public class HvlAsyncTokenAuthenticationServiceImpl
extends Object
implements HvlAsyncTokenAuthenticationService
The implementation class that authenticates the system user
-
Constructor Summary
ConstructorDescriptionHvlAsyncTokenAuthenticationServiceImpl
(HvlAsyncTokenContext asyncTokenContext, HvlAuthAuthenticationRestService authCloudRestService, HvlAuthzSessionRestService sessionRestService, HvlAsyncTokenProperties asyncTokenProperties) Instantiates a new Hvl async token authentication service. -
Method Summary
Modifier and TypeMethodDescriptionvoid
authenticate
(@NotNull @Valid HvlAuthAuthenticationRequestModel authenticationRequestModel) Authenticate.void
authenticateWithApiKey
(HvlAuthAuthenticationRequestModel authenticationRequestModel) Authenticate with api key.
-
Constructor Details
-
HvlAsyncTokenAuthenticationServiceImpl
public HvlAsyncTokenAuthenticationServiceImpl(HvlAsyncTokenContext asyncTokenContext, HvlAuthAuthenticationRestService authCloudRestService, HvlAuthzSessionRestService sessionRestService, HvlAsyncTokenProperties asyncTokenProperties) Instantiates a new Hvl async token authentication service.- Parameters:
asyncTokenContext
- the async token contextauthCloudRestService
- the auth cloud rest servicesessionRestService
- the session rest serviceasyncTokenProperties
- the async token properties
-
-
Method Details
-
authenticate
public void authenticate(@NotNull @Valid @NotNull @Valid HvlAuthAuthenticationRequestModel authenticationRequestModel) throws HvlAuthException Authenticate.- Specified by:
authenticate
in interfaceHvlAsyncTokenAuthenticationService
- Parameters:
authenticationRequestModel
- the authentication request model- Throws:
HvlAuthException
-
authenticateWithApiKey
public void authenticateWithApiKey(HvlAuthAuthenticationRequestModel authenticationRequestModel) throws HvlAuthException Authenticate with api key.- Specified by:
authenticateWithApiKey
in interfaceHvlAsyncTokenAuthenticationService
- Parameters:
authenticationRequestModel
- the authentication request model- Throws:
HvlAuthException
-