Package org.openiam.srvc.am
Interface AuthenticationService
-
- All Known Implementing Classes:
AuthenticationWebServiceImpl
public interface AuthenticationService
Created by alexander on 11/08/16.
-
-
Method Summary
-
-
-
Method Detail
-
globalLogout
void globalLogout(String userId) throws Throwable
Use- Parameters:
userId
-- Throws:
Throwable
-
globalLogoutRequest
Response globalLogoutRequest(LogoutRequest request)
This method executes a global logout so that the user is logged out all the application they have logged into.
For example:authenticationService.globalLogoutWithContentProvider(userId, contentProviderId);
- Parameters:
request
- The request to logout.
-
login
AuthenticationResponse login(AuthenticationRequest request)
This method logs in a user. It updates his Login record to reflect this fact. Unsuccessful logins attempts are counted. If the user unsuccessfully logins in N number of times in a row, his account is locked. 'N' is defined in the Password Policy.- Parameters:
request
- - authentication request specific to the user logging in.- Returns:
- - an
AuthenticationResponse
object containing the user's token, principal, and internal user ID. If the login attempt was successful,AuthenticationResponse.getStatus()
returns ResponseCode.SUCCESS. Otherwise, it is set to ResponseCode.FAILURE
-
clearOTPActiveStatus
Response clearOTPActiveStatus(OTPServiceRequest request)
-
isOTPActive
boolean isOTPActive(OTPServiceRequest request)
-
sendOTPToken
Response sendOTPToken(OTPServiceRequest request)
-
confirmOTPToken
Response confirmOTPToken(OTPServiceRequest request)
-
renewToken
Response renewToken(String principal, String token, String managedSystemId)
Attempts to renew the SSO Token for this user.- Parameters:
principal
- - the user's logintoken
- - the current token- Returns:
- a
Response
object. If successful,Response.getStatus()
returns ResponseCode.SUCCESS. Otherwise, it returns ResponseCode.FAILURE. If renewal is successful Response.getResponseValue() will contains anSSOToken
Object.
-
findBeans
List<AuthStateEntity> findBeans(AuthStateSearchBean searchBean, int from, int size)
-
save
Response save(AuthStateEntity entity)
-
checkVerificationCode
boolean checkVerificationCode(VerificationCodeRequest request)
Check sms code for approve phone number- Parameters:
request
-- Returns:
-
sendVerificationCode
Response sendVerificationCode(VerificationCodeRequest request)
Send sms code for check phone number- Parameters:
request
-- Returns:
-
canOTPBeSuppressed
BooleanResponse canOTPBeSuppressed(OTPSuppressionRequest request)
-
getAuthenticationDetails
AuthenticationDetailsResponse getAuthenticationDetails(IdServiceRequest request)
-
isITPolicyAccepted
BooleanResponse isITPolicyAccepted(UserITPolicyHistoryRequest request)
-
-