Class KeycloakImpl
- java.lang.Object
-
- io.mosip.kernel.auth.defaultimpl.repository.impl.KeycloakImpl
-
-
Constructor Summary
Constructors Constructor Description KeycloakImpl()
-
Method Summary
-
-
-
Method Detail
-
getAllRoles
public RolesListDto getAllRoles(String appId)
- Specified by:
getAllRolesin interfaceDataStore
-
getListOfUsersDetails
public MosipUserListDto getListOfUsersDetails(List<String> userDetails, String realmId) throws Exception
- Specified by:
getListOfUsersDetailsin interfaceDataStore- Throws:
Exception
-
getAllUserDetailsWithSalt
public MosipUserSaltListDto getAllUserDetailsWithSalt(List<String> userDetails, String appId) throws Exception
- Specified by:
getAllUserDetailsWithSaltin interfaceDataStore- Throws:
Exception
-
getRidFromUserId
public RIdDto getRidFromUserId(String userId, String appId) throws Exception
- Specified by:
getRidFromUserIdin interfaceDataStore- Throws:
Exception
-
unBlockAccount
public AuthZResponseDto unBlockAccount(String userId) throws Exception
- Specified by:
unBlockAccountin interfaceDataStore- Throws:
Exception
-
registerUser
public MosipUserDto registerUser(UserRegistrationRequestDto userId)
- Specified by:
registerUserin interfaceDataStore
-
isUserAlreadyPresent
public boolean isUserAlreadyPresent(String userName, String realmId)
Checks if is user already present.- Parameters:
userName- the user name- Returns:
- true, if successful
- Throws:
IOException- Signals that an I/O exception has occurred.
-
addPassword
public UserPasswordResponseDto addPassword(UserPasswordRequestDto userPasswordRequestDto)
- Specified by:
addPasswordin interfaceDataStore
-
changePassword
public AuthZResponseDto changePassword(PasswordDto passwordDto) throws Exception
- Specified by:
changePasswordin interfaceDataStore- Throws:
Exception
-
resetPassword
public AuthZResponseDto resetPassword(PasswordDto passwordDto) throws Exception
- Specified by:
resetPasswordin interfaceDataStore- Throws:
Exception
-
getUserNameBasedOnMobileNumber
public UserNameDto getUserNameBasedOnMobileNumber(String mobileNumber) throws Exception
- Specified by:
getUserNameBasedOnMobileNumberin interfaceDataStore- Throws:
Exception
-
authenticateUser
public MosipUserDto authenticateUser(LoginUser loginUser) throws Exception
- Specified by:
authenticateUserin interfaceDataStore- Throws:
Exception
-
authenticateWithOtp
public MosipUserDto authenticateWithOtp(OtpUser otpUser) throws Exception
- Specified by:
authenticateWithOtpin interfaceDataStore- Throws:
Exception
-
authenticateUserWithOtp
public MosipUserDto authenticateUserWithOtp(UserOtp loginUser) throws Exception
- Specified by:
authenticateUserWithOtpin interfaceDataStore- Throws:
Exception
-
authenticateWithSecretKey
public MosipUserDto authenticateWithSecretKey(ClientSecret clientSecret) throws Exception
- Specified by:
authenticateWithSecretKeyin interfaceDataStore- Throws:
Exception
-
getUserRoleByUserId
public MosipUserDto getUserRoleByUserId(String username) throws Exception
- Specified by:
getUserRoleByUserIdin interfaceDataStore- Throws:
Exception
-
getUserDetailBasedonMobileNumber
public MosipUserDto getUserDetailBasedonMobileNumber(String mobileNumber) throws Exception
- Specified by:
getUserDetailBasedonMobileNumberin interfaceDataStore- Throws:
Exception
-
validateUserName
public ValidationResponseDto validateUserName(String userId)
- Specified by:
validateUserNamein interfaceDataStore
-
getUserDetailBasedOnUid
public UserDetailsResponseDto getUserDetailBasedOnUid(List<String> userIds)
- Specified by:
getUserDetailBasedOnUidin interfaceDataStore
-
-