public class AuthenticationClient extends BaseClient
| 构造器和说明 |
|---|
AuthenticationClient(AuthenticationClientOptions options) |
deserialize, request, serializepublic AuthenticationClient(AuthenticationClientOptions options) throws IOException, ParseException
public void setAccessToken(String accessToken)
public AccessToken introspectAccessTokenOffline(String token) throws Exception
Exceptionpublic OIDCTokenResponse getAccessTokenByCode(String code) throws Exception
Exceptionpublic OIDCTokenResponse getAccessTokenByCode(String code, String redirectUri) throws Exception
Exceptionpublic ValidateTicketV1Response validateTicketV1(String ticket, String service)
public String validateTicketV2(String ticket, String service, String format) throws Exception
Exceptionpublic String getCodeChallengeDigest(CodeChallengeDigestParam options) throws Exception
Exceptionpublic String buildLogoutUrl(BuildLogoutUrlParams params) throws Exception
params - Exceptionpublic GetAccessTokenByClientCredentialsRespDto getAccessTokenByClientCredentials(String scope, ClientCredentialInput options) throws Exception
Exceptionpublic UserInfo getUserInfoByAccessToken(String accessToken)
public Map<String,Object> getUserInfoMapByAccessToken(String accessToken)
public String buildAuthorizeUrl(IOidcParams params)
public String buildAuthorizeUrl(ICasParams params)
public String buildAuthorizeUrl()
public String buildAuthorizeUrl(IOauthParams params)
public GetNewAccessTokenByRefreshTokenRespDto getNewAccessTokenByRefreshToken(String refreshToken)
public IntrospectTokenRespDto introspectToken(String token)
public ValidateTokenRespDto validateToken(ValidateTokenParams params)
public boolean revokeToken(String token)
public LoginTokenRespDto signInByUsernamePassword(String username, String password, SignInOptionsDto options)
username - 用户名password - 用户密码,默认不加密。Authing 所有 API 均通过 HTTPS
协议对密码进行安全传输,可以在一定程度上保证安全性。如果你还需要更高级别的安全性,我们还支持 `RSA256` 和国密 `SM2`
的密码加密方式。详情见可选参数 `options.passwordEncryptType`。options - 认证可选参数public LoginTokenRespDto signInByEmailPassword(String email, String password, SignInOptionsDto options)
email - 邮箱password - 用户密码,默认不加密。Authing 所有 API 均通过 HTTPS
协议对密码进行安全传输,可以在一定程度上保证安全性。如果你还需要更高级别的安全性,我们还支持 `RSA256` 和国密 `SM2`
的密码加密方式。详情见可选参数 `options.passwordEncryptType`。options - 认证可选参数public LoginTokenRespDto signInByPhonePassword(String phone, String password, SignInOptionsDto options)
phone - 手机号password - 用户密码,默认不加密。Authing 所有 API 均通过 HTTPS
协议对密码进行安全传输,可以在一定程度上保证安全性。如果你还需要更高级别的安全性,我们还支持 `RSA256` 和国密 `SM2`
的密码加密方式。详情见可选参数 `options.passwordEncryptType`。options - 认证可选参数public LoginTokenRespDto signInByAccountPassword(String acconnt, String password, SignInOptionsDto options)
acconnt - 账号(手机号/邮箱/用户名)password - 用户密码,默认不加密。Authing 所有 API 均通过 HTTPS
协议对密码进行安全传输,可以在一定程度上保证安全性。如果你还需要更高级别的安全性,我们还支持 `RSA256` 和国密 `SM2`
的密码加密方式。详情见可选参数 `options.passwordEncryptType`。options - 认证可选参数public LoginTokenRespDto signInByPhonePassCode(String phone, String passCode, String phoneCountryCode, SignInOptionsDto options)
phone - 手机号phoneCountryCode - 手机区号passCode - 验证码options - 认证可选参数public LoginTokenRespDto signInByEmailPassCode(String email, String passCode, SignInOptionsDto options)
email - 邮箱passCode - 验证码options - 认证可选参数public LoginTokenRespDto signInByLDAP(String sAMAccountName, String password, SignInOptionsDto options)
sAMAccountName - LDAP 用户目录中账号的 sAMAccountNamepassword - 用户密码,默认不加密。Authing 所有 API 均通过 HTTPS
协议对密码进行安全传输,可以在一定程度上保证安全性。如果你还需要更高级别的安全性,我们还支持 `RSA256` 和国密 `SM2`
的密码加密方式。详情见可选参数 `options.passwordEncryptType`。options - 认证可选参数public LoginTokenRespDto signInByAD(String sAMAccountName, String password, SignInOptionsDto options)
sAMAccountName - LDAP 用户目录中账号的 sAMAccountNamepassword - 用户密码,默认不加密。Authing 所有 API 均通过 HTTPS
协议对密码进行安全传输,可以在一定程度上保证安全性。如果你还需要更高级别的安全性,我们还支持 `RSA256` 和国密 `SM2`
的密码加密方式。详情见可选参数 `options.passwordEncryptType`。options - 认证可选参数public UserSingleRespDto signUpByUsernamePassword(String username, String password, SignUpProfileDto profile, SignUpOptionsDto options)
username - 用户名password - 用户密码,默认不加密。Authing 所有 API 均通过 HTTPS
协议对密码进行安全传输,可以在一定程度上保证安全性。如果你还需要更高级别的安全性,我们还支持 `RSA256` 和国密 `SM2`
的密码加密方式。详情见可选参数 `options.passwordEncryptType`。profile - 注册时额外设置的用户资料,可选options - 注册可选参数public UserSingleRespDto signUpByEmailPassword(String email, String password, SignUpProfileDto profile, SignUpOptionsDto options)
email - 邮箱password - 用户密码,默认不加密。Authing 所有 API 均通过 HTTPS
协议对密码进行安全传输,可以在一定程度上保证安全性。如果你还需要更高级别的安全性,我们还支持 `RSA256` 和国密 `SM2`
的密码加密方式。详情见可选参数 `options.passwordEncryptType`。profile - 注册时额外设置的用户资料,可选options - 注册可选参数public UserSingleRespDto signUpByEmailPassCode(String email, String passCode, SignUpProfileDto profile, SignUpOptionsDto options)
email - 邮箱passCode - 验证码profile - 注册时额外设置的用户资料,可选options - 注册可选参数public UserSingleRespDto signUpByPhonePassCode(String phone, String passCode, String phoneCountryCode, SignUpProfileDto profile, SignUpOptionsDto options)
phone - 手机号phoneCountryCode - 手机区号passCode - 验证码profile - 注册时额外设置的用户资料,可选options - 注册可选参数public UserSingleRespDto signUp(SignUpDto reqDto)
public GenerateBindExtIdpLinkRespDto generateLinkExtIdpUrl(GenerateLinkExtidpUrlDto reqDto)
public CommonResponseDto unlinkExtIdp(UnlinkExtIdpDto reqDto)
public GetIdentitiesRespDto getIdentities()
public GetExtIdpsRespDto getApplicationEnabledExtIdps()
public LoginTokenRespDto signInByCredentials(SigninByCredentialsDto reqDto)
public LoginTokenRespDto signInByMobile(SigninByMobileDto reqDto)
public LoginTokenRespDto switchLoginByUser(PublicAccountSwitchLoginDto reqDto)
public GetAlipayAuthInfoRespDto getAlipayAuthInfo(GetAlipayAuthinfoDto reqDto)
public GeneQRCodeRespDto geneQrCode(GenerateQrcodeDto reqDto)
public CheckQRCodeStatusRespDto checkQrCodeStatus(CheckQrcodeStatusDto reqDto)
public LoginTokenRespDto exchangeTokenSetWithQrCodeTicket(ExchangeTokenSetWithQRcodeTicketDto reqDto)
public CommonResponseDto changeQrCodeStatus(ChangeQRCodeStatusDto reqDto)
public GenePushCodeRespDto signInByPush(SignInByPushDto reqDto)
public CheckPushCodeStatusRespDto checkPushCodeStatus(CheckPushcodeStatusDto reqDto)
public CommonResponseDto changePushCodeStatus(ChangePushCodeStatusDto reqDto)
public SendSMSRespDto sendSms(SendSMSDto reqDto)
public SendEmailRespDto sendEmail(SendEmailDto reqDto)
public DecryptWechatMiniProgramDataRespDto decryptWechatMiniProgramData(DecryptWechatMiniProgramDataDto reqDto)
public GetWechatAccessTokenRespDto getWechatMpAccessToken(GetWechatAccessTokenDto reqDto)
public GetWechatAccessTokenInfoRespDto getWechatMpAccessTokenInfo(GetWechatAccessTokenDto reqDto)
public GetLoginHistoryRespDto getLoginHistory(GetMyLoginHistoryDto reqDto)
public GetLoggedInAppsRespDto getLoggedInApps()
public GetAccessibleAppsRespDto getAccessibleApps()
public GetTenantListRespDto getTenantList()
public RoleListRespDto getRoleList(GetMyRoleListDto reqDto)
public GroupListRespDto getGroupList()
public UserDepartmentPaginatedRespDto getDepartmentList(GetMyDepartmentListDto reqDto)
public AuthorizedResourcePaginatedRespDto getAuthorizedResources(GetMyAuthorizedResourcesDto reqDto)
public UserSingleRespDto getProfile(GetProfileDto reqDto)
public UserSingleRespDto updateProfile(UpdateUserProfileDto reqDto)
public CommonResponseDto bindEmail(BindEmailDto reqDto)
public CommonResponseDto unbindEmail(UnbindEmailDto reqDto)
public CommonResponseDto bindPhone(BindPhoneDto reqDto)
public CommonResponseDto unbindPhone(UnbindPhoneDto reqDto)
public GetSecurityInfoRespDto getSecurityLevel()
public CommonResponseDto updatePassword(UpdatePasswordDto reqDto)
public VerifyUpdateEmailRequestRespDto verifyUpdateEmailRequest(VerifyUpdateEmailRequestDto reqDto)
public CommonResponseDto updateEmail(UpdateEmailDto reqDto)
public VerifyUpdatePhoneRequestRespDto verifyUpdatePhoneRequest(VerifyUpdatePhoneRequestDto reqDto)
public CommonResponseDto updatePhone(UpdatePhoneDto reqDto)
public PasswordResetVerifyResp verifyResetPasswordRequest(VerifyResetPasswordRequestDto reqDto)
public IsSuccessRespDto resetPassword(ResetPasswordDto reqDto)
public VerifyDeleteAccountRequestRespDto verifyDeleteAccountRequest(VerifyDeleteAccountRequestDto reqDto)
public IsSuccessRespDto deleteAccount(DeleteAccounDto reqDto)
public GetPublicAccountDataRespDto listPublicAccountsForSwitchLoggedIn(GetUserSelectLoginPublicAccountsDto reqDto)
public SystemInfoResp getSystemInfo()
public GetCountryListRespDto getCountryList()
public CheckResourcePermissionsRespDto checkPermissionByStringResource(CheckPermissionStringResourceDto reqDto)
public CheckResourcePermissionsRespDto checkPermissionByArrayResource(CheckPermissionArrayResourceDto reqDto)
public CheckResourcePermissionsRespDto checkPermissionByTreeResource(CheckPermissionTreeResourceDto reqDto)
public GetUserAuthResourceListRespDto getUserAuthorizedResourcesList()
public GetUserAuthResourcePermissionListRespDto getUserAuthResourcePermissionList(GetUserAuthResourcePermissionListDto reqDto)
public GetUserAuthResourceStructRespDto getUserAuthResourceStruct(GetUserAuthResourceStructDto reqDto)
public GetAuthenticationOptionsRespDto initAuthenticationOptions()
public VerifyAuthenticationResultRespDto verifyAuthentication(VerifyAuthenticationDto reqDto)
public GetRegistrationOptionsRespDto initRegisterOptions()
public VerifyRegistrationResultRespDto verifyRegister(VerifyRegistrationDto reqDto)
public TerminalSessionRespDto list(ListDto reqDto)
public CommonResponseDto unbind(UnbindDeviceDto reqDto)
public CommonResponseDto revoke(RevokeDeviceSessionDto reqDto)
public ValidatePasswordRespDto validatePassword(ValidatePasswordDto reqDto)
public LoginTokenResponseDataDto authByCodeIdentity(WechatMobileAuthByCodeIdentityInput reqDto)
public WechatLoginTokenRespDto registerNewUser(BindByRegiserInputApi reqDto)
public WechatLoginTokenRespDto bindByEmailCode(BindByEmailCodeInputApi reqDto)
public WechatLoginTokenRespDto bindByPhoneCode(BindByPhoneCodeInputApi reqDto)
public WechatLoginTokenRespDto bindByAccount(BindByAccountInputApi reqDto)
public WechatLoginTokenRespDto selectAccount(BindByAccountsInputApi reqDto)
public WechatLoginTokenRespDto bindByAccountId(BindByAccountIdInputApi reqDto)
public GetPushCodeRelationAppsRespDto getPushLoginRelationApps(GetPushCodeRelationAppsDto reqDto)
public GeneFastpassQRCodeRespDto geneFastpassQrcodeInfo(SignInFastpassDto reqDto)
public GetFastpassQRCodeRelationAppsRespDto getFastpassParams(GetFastpassClientAppsDto reqDto)
public CheckQRCodeStatusRespDto getQrCodeStatus(GetAppLoginQrcodeStatusDto reqDto)
public LoginTokenRespDto qrCodeAppLogin(AppQRCodeLoginDto reqDto)
public PreCheckCodeRespDto preCheckCode(PreCheckCodeDto reqDto)
public ListWebAuthnAuthenticatorDeviceDataDto listCredentialsByPage(ListDeviceCredentialDto reqDto)
public WebAuthnCheckValidCredentialsByCredIdsRespDto checkValidCredentialsByCredIds(CheckDeviceCredentialIdDto reqDto)
public IsSuccessRespDto removeAllCredentials(RemoveDeviceCredentialDto reqDto)
public IsSuccessRespDto removeCredential(WebAuthnRemoveCredentialDto reqDto)
public MfaTokenIntrospectResponse verifyMfaToken(MfaTokenIntrospectEndpointParams reqDto)
public SendEnrollFactorRequestRespDto sendEnrollFactorRequest(SendEnrollFactorRequestDto reqDto)
public EnrollFactorRespDto enrollFactor(EnrollFactorDto reqDto)
public ResetFactorRespDto resetFactor(ResetFactorDto reqDto)
public ListEnrolledFactorsRespDto listEnrolledFactors()
public GetFactorRespDto getFactor(GetFactorDto reqDto)
public ListFactorsToEnrollRespDto listFactorsToEnroll()
public MfaOtpVerityRespDto mfaOtpVerify(MfaOtpVerityDto reqDto)
public void subEvent(String eventCode, Receiver receiver)
subEvent 在类中 BaseClientpublic CommonResponseDto pubtEvent(String eventCode, Object data)
public CaptchaCodeRespDto getCaptchaCode()
Copyright © 2024. All rights reserved.