类 AuthClient
- java.lang.Object
-
- cn.authing.guard.network.AuthClient
-
public class AuthClient extends Object
-
-
构造器概要
构造器 构造器 说明 AuthClient()
-
方法概要
所有方法 静态方法 具体方法 已过时的方法 修饰符和类型 方法 说明 static voidbindEmail(String email, String code, AuthCallback<UserInfo> callback)static voidbindPhone(String phone, String code, AuthCallback<UserInfo> callback)static cn.authing.guard.network.AuthClient.PasswordStrengthcomputePasswordSecurityLevel(String password)static voidcreateUserInfoFromResponse(UserInfo userInfo, Response data, AuthCallback<UserInfo> callback)static voidcreateUserInfoFromResponse(Response data, AuthCallback<UserInfo> callback)static voiddeleteAccount(AuthCallback<org.json.JSONObject> callback)static voidgetCurrentUser(AuthCallback<UserInfo> callback)static voidgetCurrentUser(UserInfo userInfo, AuthCallback<UserInfo> callback)static voidgetCustomUserData(UserInfo userInfo, AuthCallback<UserInfo> callback)static voidgetSecurityLevel(AuthCallback<org.json.JSONObject> callback)static voidlistApplications(int page, int limit, AuthCallback<List<Application>> callback)static voidlistApplications(AuthCallback<List<Application>> callback)static voidlistAuthorizedResources(String namespace, AuthCallback<List<Resource>> callback)static voidlistAuthorizedResources(String namespace, String resourceType, AuthCallback<List<Resource>> callback)static voidlistOrgs(AuthCallback<List<Organization[]>> callback)static voidlistRoles(AuthCallback<List<Role>> callback)static voidlistRoles(String namespace, AuthCallback<List<Role>> callback)static voidloginByAccount(AuthRequest authData, String account, String password, AuthCallback<UserInfo> callback)static voidloginByAccount(String account, String password, AuthCallback<UserInfo> callback)static voidloginByAD(String username, String password, AuthCallback<UserInfo> callback)static voidloginByAlipay(String authCode, AuthCallback<UserInfo> callback)static voidloginByLark(String authCode, AuthCallback<UserInfo> callback)static voidloginByLDAP(String username, String password, AuthCallback<UserInfo> callback)static voidloginByOneAuth(String token, String accessToken, AuthCallback<UserInfo> callback)static voidloginByPhoneCode(AuthRequest authData, String phone, String code, AuthCallback<UserInfo> callback)static voidloginByPhoneCode(String phone, String code, AuthCallback<UserInfo> callback)static voidloginByScannedTicket(boolean autoMarkScanned, String ticket, AuthCallback<org.json.JSONObject> callback)static voidloginByScannedTicket(String ticket, AuthCallback<org.json.JSONObject> callback)static voidloginByWechat(String authCode, AuthCallback<UserInfo> callback)static voidloginByWecom(String authCode, AuthCallback<UserInfo> callback)static voidlogout(AuthCallback<?> callback)static voidmarkQRCodeScanned(String ticket, AuthCallback<org.json.JSONObject> callback)static voidmfaCheck(String phone, String email, AuthCallback<Boolean> callback)static voidmfaVerifyByEmail(String email, String code, AuthCallback<UserInfo> callback)static voidmfaVerifyByOTP(String code, AuthCallback<UserInfo> callback)static voidmfaVerifyByPhone(String phone, String code, AuthCallback<UserInfo> callback)static voidmfaVerifyByRecoveryCode(String code, AuthCallback<UserInfo> callback)static voidregisterByEmail(String email, String password, AuthCallback<UserInfo> callback)static voidregisterByPhoneCode(String phone, String code, String password, AuthCallback<UserInfo> callback)static voidregisterByUserName(String username, String password, AuthCallback<UserInfo> callback)static voidresetPasswordByEmailCode(String emailAddress, String code, String newPassword, AuthCallback<org.json.JSONObject> callback)static voidresetPasswordByFirstTimeLoginToken(String token, String newPassword, AuthCallback<org.json.JSONObject> callback)static voidresetPasswordByPhoneCode(String phone, String code, String newPassword, AuthCallback<org.json.JSONObject> callback)static voidsendEmail(String emailAddress, String scene, AuthCallback<org.json.JSONObject> callback)static voidsendMFAEmail(String emailAddress, AuthCallback<org.json.JSONObject> callback)static voidsendResetPasswordEmail(String emailAddress, AuthCallback<org.json.JSONObject> callback)static voidsendSms(String phone, AuthCallback<?> callback)static voidsendSms(String phone, String phoneCountryCode, AuthCallback<?> callback)static voidsetCustomUserData(org.json.JSONObject customData, AuthCallback<org.json.JSONObject> callback)static voidunbindEmail(AuthCallback<UserInfo> callback)static voidunbindPhone(AuthCallback<UserInfo> callback)static voidupdateCustomUserInfo(org.json.JSONObject customData, AuthCallback<org.json.JSONObject> callback)已过时。static voidupdateIdToken(AuthCallback<UserInfo> callback)static voidupdatePassword(String newPassword, String oldPassword, AuthCallback<org.json.JSONObject> callback)static voidupdateProfile(org.json.JSONObject object, AuthCallback<UserInfo> callback)static voidupdateUser(org.json.JSONObject object, AuthCallback<UserInfo> callback)已过时。static voiduploadAvatar(InputStream in, AuthCallback<UserInfo> callback)
-
-
-
方法详细资料
-
registerByEmail
public static void registerByEmail(String email, String password, @NotNull AuthCallback<UserInfo> callback)
-
registerByUserName
public static void registerByUserName(String username, String password, @NotNull AuthCallback<UserInfo> callback)
-
registerByPhoneCode
public static void registerByPhoneCode(String phone, String code, String password, @NotNull AuthCallback<UserInfo> callback)
-
sendSms
public static void sendSms(String phone, @NotNull AuthCallback<?> callback)
-
sendSms
public static void sendSms(String phone, String phoneCountryCode, @NotNull AuthCallback<?> callback)
-
loginByPhoneCode
public static void loginByPhoneCode(String phone, String code, @NotNull AuthCallback<UserInfo> callback)
-
loginByPhoneCode
public static void loginByPhoneCode(AuthRequest authData, String phone, String code, @NotNull AuthCallback<UserInfo> callback)
-
loginByAccount
public static void loginByAccount(String account, String password, @NotNull AuthCallback<UserInfo> callback)
-
loginByAccount
public static void loginByAccount(AuthRequest authData, String account, String password, @NotNull AuthCallback<UserInfo> callback)
-
loginByLDAP
public static void loginByLDAP(String username, String password, @NotNull AuthCallback<UserInfo> callback)
-
loginByAD
public static void loginByAD(String username, String password, @NotNull AuthCallback<UserInfo> callback)
-
sendResetPasswordEmail
public static void sendResetPasswordEmail(String emailAddress, @NotNull AuthCallback<org.json.JSONObject> callback)
-
sendMFAEmail
public static void sendMFAEmail(String emailAddress, @NotNull AuthCallback<org.json.JSONObject> callback)
-
sendEmail
public static void sendEmail(String emailAddress, String scene, @NotNull AuthCallback<org.json.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<org.json.JSONObject> callback)
-
resetPasswordByEmailCode
public static void resetPasswordByEmailCode(String emailAddress, String code, String newPassword, @NotNull AuthCallback<org.json.JSONObject> callback)
-
resetPasswordByFirstTimeLoginToken
public static void resetPasswordByFirstTimeLoginToken(String token, String newPassword, @NotNull AuthCallback<org.json.JSONObject> callback)
-
loginByWechat
public static void loginByWechat(String authCode, @NotNull AuthCallback<UserInfo> callback)
-
loginByWecom
public static void loginByWecom(String authCode, @NotNull AuthCallback<UserInfo> callback)
-
loginByAlipay
public static void loginByAlipay(String authCode, @NotNull AuthCallback<UserInfo> callback)
-
loginByLark
public static void loginByLark(String authCode, @NotNull AuthCallback<UserInfo> callback)
-
loginByOneAuth
public static void loginByOneAuth(String token, String accessToken, @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)
-
unbindPhone
public static void unbindPhone(@NotNull AuthCallback<UserInfo> callback)
-
computePasswordSecurityLevel
public static cn.authing.guard.network.AuthClient.PasswordStrength computePasswordSecurityLevel(String password)
-
getSecurityLevel
public static void getSecurityLevel(@NotNull AuthCallback<org.json.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)
-
mfaVerifyByEmail
public static void mfaVerifyByEmail(String email, String code, @NotNull AuthCallback<UserInfo> callback)
-
mfaVerifyByOTP
public static void mfaVerifyByOTP(String code, @NotNull AuthCallback<UserInfo> callback)
-
mfaVerifyByRecoveryCode
public static void mfaVerifyByRecoveryCode(String code, @NotNull AuthCallback<UserInfo> callback)
-
updatePassword
public static void updatePassword(String newPassword, String oldPassword, @NotNull AuthCallback<org.json.JSONObject> callback)
-
getCurrentUser
public static void getCurrentUser(@NotNull AuthCallback<UserInfo> callback)
-
getCurrentUser
public static void getCurrentUser(UserInfo userInfo, @NotNull AuthCallback<UserInfo> callback)
-
updateUser
@Deprecated public static void updateUser(org.json.JSONObject object, @NotNull AuthCallback<UserInfo> callback)
已过时。
-
updateProfile
public static void updateProfile(org.json.JSONObject object, @NotNull AuthCallback<UserInfo> callback)
-
updateCustomUserInfo
@Deprecated public static void updateCustomUserInfo(org.json.JSONObject customData, @NotNull AuthCallback<org.json.JSONObject> callback)
已过时。
-
setCustomUserData
public static void setCustomUserData(org.json.JSONObject customData, @NotNull AuthCallback<org.json.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<org.json.JSONObject> callback)
-
markQRCodeScanned
public static void markQRCodeScanned(String ticket, @NotNull AuthCallback<org.json.JSONObject> callback)
-
loginByScannedTicket
public static void loginByScannedTicket(boolean autoMarkScanned, String ticket, @NotNull AuthCallback<org.json.JSONObject> callback)
-
loginByScannedTicket
public static void loginByScannedTicket(String ticket, @NotNull AuthCallback<org.json.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)
-
-