Class KeycloakImpl

    • Constructor Detail

      • KeycloakImpl

        public KeycloakImpl()
    • Method Detail

      • getAllRoles

        public io.mosip.kernel.core.authmanager.model.RolesListDto getAllRoles​(String appId)
        Specified by:
        getAllRoles in interface DataStore
      • registerUser

        public io.mosip.kernel.core.authmanager.model.MosipUserDto registerUser​(io.mosip.kernel.core.authmanager.model.UserRegistrationRequestDto userId)
        Specified by:
        registerUser in interface DataStore
      • 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:
        addPassword in interface DataStore
      • changePassword

        public io.mosip.kernel.core.authmanager.model.AuthZResponseDto changePassword​(io.mosip.kernel.core.authmanager.model.PasswordDto passwordDto)
                                                                               throws Exception
        Specified by:
        changePassword in interface DataStore
        Throws:
        Exception
      • resetPassword

        public io.mosip.kernel.core.authmanager.model.AuthZResponseDto resetPassword​(io.mosip.kernel.core.authmanager.model.PasswordDto passwordDto)
                                                                              throws Exception
        Specified by:
        resetPassword in interface DataStore
        Throws:
        Exception
      • authenticateUser

        public io.mosip.kernel.core.authmanager.model.MosipUserDto authenticateUser​(io.mosip.kernel.core.authmanager.model.LoginUser loginUser)
                                                                             throws Exception
        Specified by:
        authenticateUser in interface DataStore
        Throws:
        Exception
      • authenticateWithOtp

        public io.mosip.kernel.core.authmanager.model.MosipUserDto authenticateWithOtp​(io.mosip.kernel.core.authmanager.model.OtpUser otpUser)
                                                                                throws Exception
        Specified by:
        authenticateWithOtp in interface DataStore
        Throws:
        Exception
      • authenticateUserWithOtp

        public io.mosip.kernel.core.authmanager.model.MosipUserDto authenticateUserWithOtp​(io.mosip.kernel.core.authmanager.model.UserOtp loginUser)
                                                                                    throws Exception
        Specified by:
        authenticateUserWithOtp in interface DataStore
        Throws:
        Exception
      • authenticateWithSecretKey

        public io.mosip.kernel.core.authmanager.model.MosipUserDto authenticateWithSecretKey​(io.mosip.kernel.core.authmanager.model.ClientSecret clientSecret)
                                                                                      throws Exception
        Specified by:
        authenticateWithSecretKey in interface DataStore
        Throws:
        Exception
      • validateUserName

        public io.mosip.kernel.core.authmanager.model.ValidationResponseDto validateUserName​(String userId)
        Specified by:
        validateUserName in interface DataStore