@Component public class AuthServiceImpl extends Object implements AuthService
| Constructor and Description |
|---|
AuthServiceImpl() |
public MosipUserTokenDto validateToken(String token) throws Exception
validateToken in interface AuthZServicetoken - tokenMosipUserTokenDtoException - exceptionpublic AuthNResponseDto authenticateUser(LoginUser loginUser) throws Exception
authenticateUser in interface AuthNServiceloginUser - is of type LoginUserAuthNResponseDtoException - exceptionpublic AuthNResponseDto authenticateWithOtp(OtpUser otpUser) throws Exception
authenticateWithOtp in interface AuthNServiceotpUser - is of type OtpUserAuthNResponseDtoException - exceptionpublic AuthNResponseDto authenticateUserWithOtp(UserOtp userOtp) throws Exception
authenticateUserWithOtp in interface AuthNServiceuserOtp - is of type UserOtpAuthNResponseDtoException - exceptionpublic AuthNResponseDto authenticateWithSecretKey(ClientSecret clientSecret) throws Exception
authenticateWithSecretKey in interface AuthNServiceclientSecret - is of type ClientSecretAuthNResponseDtoException - exceptionpublic MosipUserTokenDto retryToken(String existingToken) throws Exception
retryToken in interface AuthServiceexistingToken - existing tokenMosipUserTokenDtoException - exceptionpublic AuthNResponse invalidateToken(String token) throws Exception
invalidateToken in interface AuthServicetoken - tokenAuthNResponseException - exceptionpublic RolesListDto getAllRoles(String appId)
getAllRoles in interface AuthServicepublic MosipUserListDto getListOfUsersDetails(List<String> userDetails, String appId) throws Exception
getListOfUsersDetails in interface AuthServiceExceptionpublic MosipUserSaltListDto getAllUserDetailsWithSalt(String appId) throws Exception
getAllUserDetailsWithSalt in interface AuthServiceExceptionpublic RIdDto getRidBasedOnUid(String userId, String appId) throws Exception
getRidBasedOnUid in interface AuthServiceExceptionpublic AuthZResponseDto unBlockUser(String userId, String appId) throws Exception
unBlockUser in interface AuthServiceExceptionpublic AuthZResponseDto changePassword(String appId, PasswordDto passwordDto) throws Exception
changePassword in interface AuthServiceExceptionpublic AuthZResponseDto resetPassword(String appId, PasswordDto passwordDto) throws Exception
resetPassword in interface AuthServiceExceptionpublic UserNameDto getUserNameBasedOnMobileNumber(String appId, String mobileNumber) throws Exception
getUserNameBasedOnMobileNumber in interface AuthServiceExceptionpublic MosipUserDto registerUser(UserRegistrationRequestDto userCreationRequestDto)
registerUser in interface AuthServicepublic UserPasswordResponseDto addUserPassword(UserPasswordRequestDto userPasswordRequestDto)
addUserPassword in interface AuthServicepublic UserRoleDto getUserRole(String appId, String userId) throws Exception
getUserRole in interface AuthServiceExceptionpublic MosipUserDto getUserDetailBasedonMobileNumber(String appId, String mobileNumber) throws Exception
getUserDetailBasedonMobileNumber in interface AuthServiceExceptionpublic ValidationResponseDto validateUserName(String appId, String userName)
validateUserName in interface AuthServicepublic UserDetailsResponseDto getUserDetailBasedOnUserId(String appId, List<String> userIds)
getUserDetailBasedOnUserId in interface AuthServicepublic MosipUserDto valdiateToken(String token)
valdiateToken in interface AuthServicepublic AuthResponseDto logoutUser(String token)
logoutUser in interface AuthServicepublic AccessTokenResponseDTO loginRedirect(String state, String sessionState, String code, String stateCookie, String redirectURI)
loginRedirect in interface AuthServicepublic String getKeycloakURI(String redirectURI, String state)
getKeycloakURI in interface AuthServiceCopyright © 2020. All rights reserved.