Class KeycloakImpl
- java.lang.Object
-
- io.mosip.kernel.auth.defaultimpl.repository.impl.KeycloakImpl
-
-
Constructor Summary
Constructors Constructor Description KeycloakImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description io.mosip.kernel.core.authmanager.model.UserPasswordResponseDtoaddPassword(io.mosip.kernel.core.authmanager.model.UserPasswordRequestDto userPasswordRequestDto)io.mosip.kernel.core.authmanager.model.MosipUserDtoauthenticateUser(io.mosip.kernel.core.authmanager.model.LoginUser loginUser)io.mosip.kernel.core.authmanager.model.MosipUserDtoauthenticateUserWithOtp(io.mosip.kernel.core.authmanager.model.UserOtp loginUser)io.mosip.kernel.core.authmanager.model.MosipUserDtoauthenticateWithOtp(io.mosip.kernel.core.authmanager.model.OtpUser otpUser)io.mosip.kernel.core.authmanager.model.MosipUserDtoauthenticateWithSecretKey(io.mosip.kernel.core.authmanager.model.ClientSecret clientSecret)io.mosip.kernel.core.authmanager.model.AuthZResponseDtochangePassword(io.mosip.kernel.core.authmanager.model.PasswordDto passwordDto)io.mosip.kernel.core.authmanager.model.RolesListDtogetAllRoles(String appId)io.mosip.kernel.core.authmanager.model.MosipUserSaltListDtogetAllUserDetailsWithSalt(List<String> userDetails, String appId)io.mosip.kernel.core.authmanager.model.IndividualIdDtogetIndividualIdFromUserId(String userId, String realmID)io.mosip.kernel.core.authmanager.model.MosipUserListDtogetListOfUsersDetails(String realmId, String roleName, int pageStart, int pageFetch, String email, String firstName, String lastName, String username, String search)io.mosip.kernel.core.authmanager.model.MosipUserListDtogetListOfUsersDetails(List<String> userDetails, String realmId)io.mosip.kernel.core.authmanager.model.RIdDtogetRidFromUserId(String userId, String appId)io.mosip.kernel.core.authmanager.model.MosipUserDtogetUserDetailBasedonMobileNumber(String mobileNumber)io.mosip.kernel.core.authmanager.model.UserDetailsResponseDtogetUserDetailBasedOnUid(List<String> userIds)io.mosip.kernel.core.authmanager.model.UserNameDtogetUserNameBasedOnMobileNumber(String mobileNumber)io.mosip.kernel.core.authmanager.model.MosipUserDtogetUserRoleByUserId(String username)booleanisUserAlreadyPresent(String userName, String realmId)Checks if is user already present.io.mosip.kernel.core.authmanager.model.MosipUserDtoregisterUser(io.mosip.kernel.core.authmanager.model.UserRegistrationRequestDto userId)io.mosip.kernel.core.authmanager.model.AuthZResponseDtoresetPassword(io.mosip.kernel.core.authmanager.model.PasswordDto passwordDto)io.mosip.kernel.core.authmanager.model.AuthZResponseDtounBlockAccount(String userId)io.mosip.kernel.core.authmanager.model.ValidationResponseDtovalidateUserName(String userId)
-
-
-
Method Detail
-
getAllRoles
public io.mosip.kernel.core.authmanager.model.RolesListDto getAllRoles(String appId)
- Specified by:
getAllRolesin interfaceDataStore
-
getListOfUsersDetails
public io.mosip.kernel.core.authmanager.model.MosipUserListDto getListOfUsersDetails(List<String> userDetails, String realmId) throws Exception
- Specified by:
getListOfUsersDetailsin interfaceDataStore- Throws:
Exception
-
getAllUserDetailsWithSalt
public io.mosip.kernel.core.authmanager.model.MosipUserSaltListDto getAllUserDetailsWithSalt(List<String> userDetails, String appId) throws Exception
- Specified by:
getAllUserDetailsWithSaltin interfaceDataStore- Throws:
Exception
-
getRidFromUserId
public io.mosip.kernel.core.authmanager.model.RIdDto getRidFromUserId(String userId, String appId) throws Exception
- Specified by:
getRidFromUserIdin interfaceDataStore- Throws:
Exception
-
unBlockAccount
public io.mosip.kernel.core.authmanager.model.AuthZResponseDto unBlockAccount(String userId) throws Exception
- Specified by:
unBlockAccountin interfaceDataStore- Throws:
Exception
-
registerUser
public io.mosip.kernel.core.authmanager.model.MosipUserDto registerUser(io.mosip.kernel.core.authmanager.model.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 io.mosip.kernel.core.authmanager.model.UserPasswordResponseDto addPassword(io.mosip.kernel.core.authmanager.model.UserPasswordRequestDto userPasswordRequestDto)
- Specified by:
addPasswordin interfaceDataStore
-
changePassword
public io.mosip.kernel.core.authmanager.model.AuthZResponseDto changePassword(io.mosip.kernel.core.authmanager.model.PasswordDto passwordDto) throws Exception- Specified by:
changePasswordin interfaceDataStore- Throws:
Exception
-
resetPassword
public io.mosip.kernel.core.authmanager.model.AuthZResponseDto resetPassword(io.mosip.kernel.core.authmanager.model.PasswordDto passwordDto) throws Exception- Specified by:
resetPasswordin interfaceDataStore- Throws:
Exception
-
getUserNameBasedOnMobileNumber
public io.mosip.kernel.core.authmanager.model.UserNameDto getUserNameBasedOnMobileNumber(String mobileNumber) throws Exception
- Specified by:
getUserNameBasedOnMobileNumberin interfaceDataStore- Throws:
Exception
-
authenticateUser
public io.mosip.kernel.core.authmanager.model.MosipUserDto authenticateUser(io.mosip.kernel.core.authmanager.model.LoginUser loginUser) throws Exception- Specified by:
authenticateUserin interfaceDataStore- Throws:
Exception
-
authenticateWithOtp
public io.mosip.kernel.core.authmanager.model.MosipUserDto authenticateWithOtp(io.mosip.kernel.core.authmanager.model.OtpUser otpUser) throws Exception- Specified by:
authenticateWithOtpin interfaceDataStore- Throws:
Exception
-
authenticateUserWithOtp
public io.mosip.kernel.core.authmanager.model.MosipUserDto authenticateUserWithOtp(io.mosip.kernel.core.authmanager.model.UserOtp loginUser) throws Exception- Specified by:
authenticateUserWithOtpin interfaceDataStore- Throws:
Exception
-
authenticateWithSecretKey
public io.mosip.kernel.core.authmanager.model.MosipUserDto authenticateWithSecretKey(io.mosip.kernel.core.authmanager.model.ClientSecret clientSecret) throws Exception- Specified by:
authenticateWithSecretKeyin interfaceDataStore- Throws:
Exception
-
getUserRoleByUserId
public io.mosip.kernel.core.authmanager.model.MosipUserDto getUserRoleByUserId(String username) throws Exception
- Specified by:
getUserRoleByUserIdin interfaceDataStore- Throws:
Exception
-
getUserDetailBasedonMobileNumber
public io.mosip.kernel.core.authmanager.model.MosipUserDto getUserDetailBasedonMobileNumber(String mobileNumber) throws Exception
- Specified by:
getUserDetailBasedonMobileNumberin interfaceDataStore- Throws:
Exception
-
validateUserName
public io.mosip.kernel.core.authmanager.model.ValidationResponseDto validateUserName(String userId)
- Specified by:
validateUserNamein interfaceDataStore
-
getUserDetailBasedOnUid
public io.mosip.kernel.core.authmanager.model.UserDetailsResponseDto getUserDetailBasedOnUid(List<String> userIds)
- Specified by:
getUserDetailBasedOnUidin interfaceDataStore
-
getIndividualIdFromUserId
public io.mosip.kernel.core.authmanager.model.IndividualIdDto getIndividualIdFromUserId(String userId, String realmID)
- Specified by:
getIndividualIdFromUserIdin interfaceDataStore
-
getListOfUsersDetails
public io.mosip.kernel.core.authmanager.model.MosipUserListDto getListOfUsersDetails(String realmId, String roleName, int pageStart, int pageFetch, String email, String firstName, String lastName, String username, String search)
- Specified by:
getListOfUsersDetailsin interfaceDataStore
-
-