Package cn.authing.guard.network
Class AuthClient
- java.lang.Object
-
- cn.authing.guard.network.AuthClient
-
public class AuthClient extends Object
-
-
Constructor Summary
Constructors Constructor Description AuthClient()
-
Method Summary
-
-
-
Method Detail
-
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 password, String code, @NotNull AuthCallback<UserInfo> callback)
-
sendSms
public static void sendSms(String phone, @NotNull AuthCallback<?> callback)
-
loginByPhoneCode
public static void loginByPhoneCode(String phone, String code, @NotNull AuthCallback<UserInfo> callback)
-
loginByPhoneCode
public static void loginByPhoneCode(AuthData 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(AuthData 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<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)
-
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)
-
loginByAlipay
public static void loginByAlipay(String authCode, @NotNull AuthCallback<UserInfo> callback)
-
loginByOneClick
public static void loginByOneClick(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<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)
-
mfaCheck
public static void mfaCheck(String phone, String email, @NotNull AuthCallback<JSONObject> 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 oldPassword, String newPassword, @NotNull AuthCallback<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(JSONObject body, @NotNull AuthCallback<UserInfo> callback)
Deprecated.
-
updateProfile
public static void updateProfile(JSONObject body, @NotNull AuthCallback<UserInfo> callback)
-
updateCustomUserInfo
@Deprecated public static void updateCustomUserInfo(JSONObject customData, @NotNull AuthCallback<JSONObject> callback)
Deprecated.
-
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<JSONObject> callback)
-
deleteAccount
public static void deleteAccount(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)
-
-