Class AuthenticationAPIImpl
java.lang.Object
com.brihaspathee.zeus.web.resource.impl.AuthenticationAPIImpl
- All Implemented Interfaces:
AuthenticationAPI
Created in Intellij IDEA
User: Balaji Varadharajan
Date: 23, May 2022
Time: 4:42 PM
Project: Zeus
Package Name: com.brihaspathee.zeus.web.resource.impl
To change this template use File | Settings | File and Code Template
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<com.brihaspathee.zeus.web.response.ZeusApiResponse<AuthenticationResponse>>basicAuthentication(User user) Authenticates the username and passwordorg.springframework.http.ResponseEntity<com.brihaspathee.zeus.web.response.ZeusApiResponse<AuthenticationResponse>>jwtAuthentication(AuthenticationRequest authenticationRequest) Authenticates the username and password that is passed in the authentication request The authentication request is passed in the body of the request
-
Constructor Details
-
AuthenticationAPIImpl
public AuthenticationAPIImpl()
-
-
Method Details
-
jwtAuthentication
public org.springframework.http.ResponseEntity<com.brihaspathee.zeus.web.response.ZeusApiResponse<AuthenticationResponse>> jwtAuthentication(AuthenticationRequest authenticationRequest) throws Exception Authenticates the username and password that is passed in the authentication request The authentication request is passed in the body of the request- Specified by:
jwtAuthenticationin interfaceAuthenticationAPI- Parameters:
authenticationRequest-- Returns:
- Throws:
Exception
-
basicAuthentication
public org.springframework.http.ResponseEntity<com.brihaspathee.zeus.web.response.ZeusApiResponse<AuthenticationResponse>> basicAuthentication(User user) throws Exception Authenticates the username and password- Specified by:
basicAuthenticationin interfaceAuthenticationAPI- Parameters:
user-- Returns:
- Throws:
Exception
-