类 AuthClient
- java.lang.Object
-
- cn.authing.guard.network.AuthClient
-
public class AuthClient extends Object
-
-
构造器概要
构造器 构造器 说明 AuthClient()
-
方法概要
-
-
-
方法详细资料
-
registerByExtendField
public static void registerByExtendField(String fieldName, String account, String password, String context, @NotNull AuthCallback<UserInfo> callback)
-
registerByExtendField
public static void registerByExtendField(AuthRequest authData, String fieldName, String account, String password, String context, @NotNull AuthCallback<UserInfo> callback)
-
registerByEmail
public static void registerByEmail(String email, String password, @NotNull AuthCallback<UserInfo> callback)
-
registerByEmail
public static void registerByEmail(String email, String password, String context, @NotNull AuthCallback<UserInfo> callback)
-
registerByEmail
public static void registerByEmail(AuthRequest authData, String email, String password, String context, @NotNull AuthCallback<UserInfo> callback)
-
registerByEmailCode
public static void registerByEmailCode(String email, String code, @NotNull AuthCallback<UserInfo> callback)
-
registerByEmailCode
public static void registerByEmailCode(String email, String code, String context, @NotNull AuthCallback<UserInfo> callback)
-
registerByEmailCode
public static void registerByEmailCode(AuthRequest authData, String email, String code, String context, @NotNull AuthCallback<UserInfo> callback)
-
registerByUserName
public static void registerByUserName(String username, String password, @NotNull AuthCallback<UserInfo> callback)
-
registerByUserName
public static void registerByUserName(String username, String password, String context, @NotNull AuthCallback<UserInfo> callback)
-
registerByPhonePassword
public static void registerByPhonePassword(String phoneCountryCode, String phone, String password, String context, @NotNull AuthCallback<UserInfo> callback)
-
registerByPhonePassword
public static void registerByPhonePassword(AuthRequest authData, String phoneCountryCode, String phone, String password, String context, @NotNull AuthCallback<UserInfo> callback)
-
registerByPhoneCode
public static void registerByPhoneCode(String phone, String code, String password, @NotNull AuthCallback<UserInfo> callback)
-
registerByPhoneCode
public static void registerByPhoneCode(String phoneCountryCode, String phone, String code, String password, @NotNull AuthCallback<UserInfo> callback)
-
registerByPhoneCode
public static void registerByPhoneCode(String phoneCountryCode, String phone, String code, String password, String context, @NotNull AuthCallback<UserInfo> callback)
-
registerByPhoneCode
public static void registerByPhoneCode(AuthRequest authData, String phoneCountryCode, String phone, String code, String password, String context, @NotNull AuthCallback<UserInfo> callback)
-
sendSms
public static void sendSms(String phone, @NotNull AuthCallback<?> callback)
-
sendSms
public static void sendSms(String phoneCountryCode, String phone, @NotNull AuthCallback<?> callback)
-
loginByPhoneCode
public static void loginByPhoneCode(String phone, String code, @NotNull AuthCallback<UserInfo> callback)
-
loginByPhoneCode
public static void loginByPhoneCode(String phoneCountryCode, String phone, String code, @NotNull AuthCallback<UserInfo> callback)
-
loginByPhoneCode
public static void loginByPhoneCode(String phoneCountryCode, String phone, String code, boolean autoRegister, String context, @NotNull AuthCallback<UserInfo> callback)
-
loginByPhoneCode
public static void loginByPhoneCode(AuthRequest authData, String phoneCountryCode, String phone, String code, boolean autoRegister, String context, @NotNull AuthCallback<UserInfo> callback)
-
loginByEmailCode
public static void loginByEmailCode(String email, String code, @NotNull AuthCallback<UserInfo> callback)
-
loginByEmailCode
public static void loginByEmailCode(String email, String code, boolean autoRegister, String context, @NotNull AuthCallback<UserInfo> callback)
-
loginByEmailCode
public static void loginByEmailCode(AuthRequest authData, String email, String code, boolean autoRegister, String context, @NotNull AuthCallback<UserInfo> callback)
-
loginByAccount
public static void loginByAccount(String account, String password, @NotNull AuthCallback<UserInfo> callback)
-
loginByAccount
public static void loginByAccount(String account, String password, boolean autoRegister, String context, @NotNull AuthCallback<UserInfo> callback)
-
loginByAccount
public static void loginByAccount(String account, String password, boolean autoRegister, String context, String captchaCode, @NotNull AuthCallback<UserInfo> callback)
-
loginByAccount
public static void loginByAccount(AuthRequest authData, String account, String password, boolean autoRegister, String context, String captchaCode, @NotNull AuthCallback<UserInfo> callback)
-
sendResetPasswordEmail
public static void sendResetPasswordEmail(String emailAddress, @NotNull AuthCallback<JSONObject> callback)
-
sendMFAEmail
public static void sendMFAEmail(String emailAddress, @NotNull AuthCallback<JSONObject> callback)
-
sendEmail
public static void sendEmail(String emailAddress, String scene, @NotNull AuthCallback<JSONObject> callback)
-
uploadAvatar
public static void uploadAvatar(InputStream in, @NotNull AuthCallback<UserInfo> callback)
-
resetPasswordByPhoneCode
public static void resetPasswordByPhoneCode(String phone, String code, String newPassword, @NotNull AuthCallback<JSONObject> callback)
-
resetPasswordByPhoneCode
public static void resetPasswordByPhoneCode(String phoneCountryCode, String phone, String code, String newPassword, @NotNull AuthCallback<JSONObject> callback)
-
resetPasswordByEmailCode
public static void resetPasswordByEmailCode(String emailAddress, String code, String newPassword, @NotNull AuthCallback<JSONObject> callback)
-
resetPasswordByFirstTimeLoginToken
public static void resetPasswordByFirstTimeLoginToken(String token, String newPassword, @NotNull AuthCallback<JSONObject> callback)
-
loginByWechat
public static void loginByWechat(String authCode, @NotNull AuthCallback<UserInfo> callback)
-
loginByWechat
public static void loginByWechat(AuthRequest authData, String authCode, @NotNull AuthCallback<UserInfo> callback)
-
loginByWecom
public static void loginByWecom(String authCode, @NotNull AuthCallback<UserInfo> callback)
-
loginByWecom
public static void loginByWecom(AuthRequest authData, String authCode, @NotNull AuthCallback<UserInfo> callback)
-
loginByWecomAgency
public static void loginByWecomAgency(String authCode, @NotNull AuthCallback<UserInfo> callback)
-
loginByWecomAgency
public static void loginByWecomAgency(AuthRequest authData, String authCode, @NotNull AuthCallback<UserInfo> callback)
-
loginByAlipay
public static void loginByAlipay(String authCode, @NotNull AuthCallback<UserInfo> callback)
-
loginByAlipay
public static void loginByAlipay(AuthRequest authData, String authCode, @NotNull AuthCallback<UserInfo> callback)
-
loginByLark
public static void loginByLark(String authCode, @NotNull AuthCallback<UserInfo> callback)
-
loginByLark
public static void loginByLark(AuthRequest authData, String authCode, @NotNull AuthCallback<UserInfo> callback)
-
loginByGoogle
public static void loginByGoogle(String authCode, @NotNull AuthCallback<UserInfo> callback)
-
loginByGoogle
public static void loginByGoogle(AuthRequest authData, String authCode, @NotNull AuthCallback<UserInfo> callback)
-
loginByFaceBook
public static void loginByFaceBook(String accessToken, @NotNull AuthCallback<UserInfo> callback)
-
loginByFaceBook
public static void loginByFaceBook(AuthRequest authData, String accessToken, @NotNull AuthCallback<UserInfo> callback)
-
loginByWechatMiniProgram
public static void loginByWechatMiniProgram(String code, String phoneInfoCode, @NotNull AuthCallback<UserInfo> callback)
-
loginByWechatMiniProgram
public static void loginByWechatMiniProgram(AuthRequest authData, String code, String phoneInfoCode, @NotNull AuthCallback<UserInfo> callback)
-
loginByQQ
public static void loginByQQ(String accessToken, @NotNull AuthCallback<UserInfo> callback)
-
loginByQQ
public static void loginByQQ(AuthRequest authData, String accessToken, @NotNull AuthCallback<UserInfo> callback)
-
loginByWeibo
public static void loginByWeibo(String accessToken, @NotNull AuthCallback<UserInfo> callback)
-
loginByWeibo
public static void loginByWeibo(AuthRequest authData, String accessToken, @NotNull AuthCallback<UserInfo> callback)
-
loginByBaidu
public static void loginByBaidu(String accessToken, @NotNull AuthCallback<UserInfo> callback)
-
loginByBaidu
public static void loginByBaidu(AuthRequest authData, String accessToken, @NotNull AuthCallback<UserInfo> callback)
-
loginByLinkedin
public static void loginByLinkedin(String authCode, @NotNull AuthCallback<UserInfo> callback)
-
loginByLinkedin
public static void loginByLinkedin(AuthRequest authData, String authCode, @NotNull AuthCallback<UserInfo> callback)
-
loginByDingTalk
public static void loginByDingTalk(String authCode, @NotNull AuthCallback<UserInfo> callback)
-
loginByDingTalk
public static void loginByDingTalk(AuthRequest authData, String authCode, @NotNull AuthCallback<UserInfo> callback)
-
loginByDouYin
public static void loginByDouYin(String authCode, @NotNull AuthCallback<UserInfo> callback)
-
loginByDouYin
public static void loginByDouYin(AuthRequest authData, String authCode, @NotNull AuthCallback<UserInfo> callback)
-
loginByGithub
public static void loginByGithub(String authCode, @NotNull AuthCallback<UserInfo> callback)
-
loginByGithub
public static void loginByGithub(AuthRequest authData, String authCode, @NotNull AuthCallback<UserInfo> callback)
-
loginByGitee
public static void loginByGitee(String authCode, @NotNull AuthCallback<UserInfo> callback)
-
loginByGitee
public static void loginByGitee(AuthRequest authData, String authCode, @NotNull AuthCallback<UserInfo> callback)
-
loginByOneAuth
public static void loginByOneAuth(String token, String accessToken, @NotNull AuthCallback<UserInfo> callback)
-
loginByOneAuth
public static void loginByOneAuth(String token, String accessToken, int netWork, @NotNull AuthCallback<UserInfo> callback)
-
loginByOneAuth
public static void loginByOneAuth(AuthRequest authData, String token, String accessToken, int netWork, @NotNull AuthCallback<UserInfo> callback)
-
bindEmail
public static void bindEmail(String email, String code, @NotNull AuthCallback<UserInfo> callback)
-
unbindEmail
public static void unbindEmail(@NotNull AuthCallback<UserInfo> callback)
-
bindPhone
public static void bindPhone(String phone, String code, @NotNull AuthCallback<UserInfo> callback)
-
bindPhone
public static void bindPhone(String phoneCountryCode, String phone, String code, @NotNull AuthCallback<UserInfo> callback)
-
unbindPhone
public static void unbindPhone(@NotNull AuthCallback<UserInfo> callback)
-
updatePhone
public static void updatePhone(String phoneCountryCode, String phone, String code, String oldPhoneCountryCode, String oldPhone, String oldCode, @NotNull AuthCallback<UserInfo> callback)
-
loginByWechatWithBind
public static void loginByWechatWithBind(String authCode, String context, @NotNull AuthCallback<UserInfo> callback)
-
loginByWechatWithBind
public static void loginByWechatWithBind(AuthRequest authData, String authCode, String context, @NotNull AuthCallback<UserInfo> callback)
-
bindWechatWithRegister
public static void bindWechatWithRegister(String key, @NotNull AuthCallback<UserInfo> callback)
-
bindWechatByAccount
public static void bindWechatByAccount(String key, String account, String password, @NotNull AuthCallback<UserInfo> callback)
-
bindWechatByPhoneCode
public static void bindWechatByPhoneCode(String key, String phoneCountryCode, String phone, String code, @NotNull AuthCallback<UserInfo> callback)
-
bindWechatByEmailCode
public static void bindWechatByEmailCode(String key, String email, String code, @NotNull AuthCallback<UserInfo> callback)
-
bindWechatBySelectedAccountId
public static void bindWechatBySelectedAccountId(String key, String account, @NotNull AuthCallback<UserInfo> callback)
-
bindWechatByAccountId
public static void bindWechatByAccountId(String key, String accountId, @NotNull AuthCallback<UserInfo> callback)
-
computePasswordSecurityLevel
public static cn.authing.guard.network.AuthClient.PasswordStrength computePasswordSecurityLevel(String password)
-
getSecurityLevel
public static void getSecurityLevel(@NotNull AuthCallback<JSONObject> callback)
-
listRoles
public static void listRoles(@NotNull AuthCallback<List<Role>> callback)
-
listRoles
public static void listRoles(String namespace, @NotNull AuthCallback<List<Role>> callback)
-
listApplications
public static void listApplications(@NotNull AuthCallback<List<Application>> callback)
-
listApplications
public static void listApplications(int page, int limit, @NotNull AuthCallback<List<Application>> callback)
-
listAuthorizedResources
public static void listAuthorizedResources(String namespace, @NotNull AuthCallback<List<Resource>> callback)
-
listAuthorizedResources
public static void listAuthorizedResources(String namespace, String resourceType, @NotNull AuthCallback<List<Resource>> callback)
-
listOrgs
public static void listOrgs(@NotNull AuthCallback<List<Organization[]>> callback)
-
updateIdToken
public static void updateIdToken(@NotNull AuthCallback<UserInfo> callback)
-
mfaCheck
public static void mfaCheck(String phone, String email, @NotNull AuthCallback<Boolean> callback)
-
mfaVerifyByPhone
public static void mfaVerifyByPhone(String phone, String code, @NotNull AuthCallback<UserInfo> callback)
-
mfaVerifyByPhone
public static void mfaVerifyByPhone(String phoneCountryCode, String phone, String code, @NotNull AuthCallback<UserInfo> callback)
-
mfaVerifyByEmail
public static void mfaVerifyByEmail(String email, String code, @NotNull AuthCallback<UserInfo> callback)
-
mfaVerifyByOTP
public static void mfaVerifyByOTP(String code, @NotNull AuthCallback<UserInfo> callback)
-
mfaVerifyByFace
public static void mfaVerifyByFace(String photoKey, @NotNull AuthCallback<UserInfo> callback)
-
mfaVerifyByRecoveryCode
public static void mfaVerifyByRecoveryCode(String code, @NotNull AuthCallback<UserInfo> callback)
-
getOtpQrCode
public static void getOtpQrCode(@NotNull AuthCallback<JSONObject> callback)
-
mfaBindByOtp
public static void mfaBindByOtp(String code, @NotNull AuthCallback<UserInfo> callback)
-
mfaBindByFace
public static void mfaBindByFace(String photoKeyA, String photoKeyB, @NotNull AuthCallback<UserInfo> callback)
-
unBindMfaPhone
public static void unBindMfaPhone(@NotNull AuthCallback<JSONObject> callback)
-
unBindMfaEmail
public static void unBindMfaEmail(@NotNull AuthCallback<JSONObject> callback)
-
updatePassword
public static void updatePassword(String newPassword, String oldPassword, @NotNull AuthCallback<JSONObject> callback)
-
getCurrentUser
public static void getCurrentUser(@NotNull AuthCallback<UserInfo> callback)
-
getCurrentUser
public static void getCurrentUser(UserInfo userInfo, @NotNull AuthCallback<UserInfo> callback)
-
getCurrentUserInfo
public static void getCurrentUserInfo(@NotNull AuthCallback<UserInfo> callback)
-
getCurrentUserInfo
public static void getCurrentUserInfo(UserInfo userInfo, @NotNull AuthCallback<UserInfo> callback)
-
getCurrentUserV3
public static void getCurrentUserV3(UserInfo userInfo, @NotNull AuthCallback<UserInfo> callback)
-
updateUser
@Deprecated public static void updateUser(JSONObject object, @NotNull AuthCallback<UserInfo> callback)
已过时。
-
updateProfile
public static void updateProfile(JSONObject object, @NotNull AuthCallback<UserInfo> callback)
-
updateCustomUserInfo
@Deprecated public static void updateCustomUserInfo(JSONObject customData, @NotNull AuthCallback<JSONObject> callback)
已过时。
-
setCustomUserData
public static void setCustomUserData(JSONObject customData, @NotNull AuthCallback<JSONObject> callback)
-
getCustomUserData
public static void getCustomUserData(UserInfo userInfo, @NotNull AuthCallback<UserInfo> callback)
-
logout
public static void logout(@NotNull AuthCallback<?> callback)
-
deleteAccount
public static void deleteAccount(AuthCallback<JSONObject> callback)
-
markQRCodeScanned
public static void markQRCodeScanned(String ticket, @NotNull AuthCallback<JSONObject> callback)
-
loginByScannedTicket
public static void loginByScannedTicket(boolean autoMarkScanned, String ticket, @NotNull AuthCallback<JSONObject> callback)
-
loginByScannedTicket
public static void loginByScannedTicket(String ticket, @NotNull AuthCallback<JSONObject> callback)
-
cancelByScannedTicket
public static void cancelByScannedTicket(String ticket, @NotNull AuthCallback<JSONObject> callback)
-
createUserInfoFromResponse
public static void createUserInfoFromResponse(Response data, @NotNull AuthCallback<UserInfo> callback)
-
createUserInfoFromResponse
public static void createUserInfoFromResponse(UserInfo userInfo, Response data, @NotNull AuthCallback<UserInfo> callback)
-
createTokenFromResponse
public static void createTokenFromResponse(Response data, @NotNull AuthCallback<UserInfo> callback)
-
checkPassword
public static void checkPassword(String password, @NotNull AuthCallback<JSONObject> callback)
-
checkAccount
public static void checkAccount(String paramsName, String paramsValue, @NotNull AuthCallback<JSONObject> callback)
-
getUserPolls
public static void getUserPolls(int page, int limit, @NotNull AuthCallback<JSONObject> callback)
-
getUserPollDetail
public static void getUserPollDetail(@NotNull AuthCallback<JSONObject> callback)
-
getCollaborationUserPolls
public static void getCollaborationUserPolls(@NotNull AuthCallback<JSONObject> callback)
-
bindPushCid
public static void bindPushCid(String cid, @NotNull AuthCallback<JSONObject> callback)
-
unBindPushCid
public static void unBindPushCid(String cid, @NotNull AuthCallback<JSONObject> callback)
-
changePushCodeStatus
public static void changePushCodeStatus(String pushCodeId, String action, @NotNull AuthCallback<JSONObject> callback)
-
loginByQrCode
public static void loginByQrCode(String qrcodeId, @NotNull AuthCallback<JSONObject> callback)
-
createDevice
public static void createDevice(DeviceInfo deviceInfo, @NotNull AuthCallback<JSONObject> callback)
-
bindBiometricRequest
public static void bindBiometricRequest(@NotNull AuthCallback<JSONObject> callback)
-
bindBiometric
public static void bindBiometric(RegistrationParams registrationParams, @NotNull AuthCallback<JSONObject> callback)
-
unBindBiometric
public static void unBindBiometric(String credentialID, @NotNull AuthCallback<JSONObject> callback)
-
getBiometricList
public static void getBiometricList(String authenticatorCode, @NotNull AuthCallback<JSONObject> callback)
-
checkBiometricBind
public static void checkBiometricBind(String authenticatorCode, String[] credentialIds, @NotNull AuthCallback<JSONObject> callback)
-
biometricAuthenticationRequest
public static void biometricAuthenticationRequest(@NotNull AuthCallback<JSONObject> callback)
-
biometricAuthentication
public static void biometricAuthentication(AuthenticationParams authenticationParams, @NotNull AuthCallback<JSONObject> callback)
-
getFastPassClientApps
public static void getFastPassClientApps(String qrcodeId, String appId, @NotNull AuthCallback<JSONObject> callback)
-
getRelatedClientApps
public static void getRelatedClientApps(String appId, @NotNull AuthCallback<JSONObject> callback)
-
getPushLoginRelationApps
public static void getPushLoginRelationApps(String pushCodeId, String appId, @NotNull AuthCallback<JSONObject> callback)
-
getCaptchaCode
public static void getCaptchaCode(@NotNull AuthCallback<Drawable> callback)
-
pubEvent
public static void pubEvent(String eventCode, String eventData, @NotNull AuthCallback<JSONObject> callback)
发布事件
-
-