Skip to content

Latest commit

 

History

History
73 lines (48 loc) · 1.71 KB

password-policy.md

File metadata and controls

73 lines (48 loc) · 1.71 KB

Password Policy

2 operation(s). Part of the API index.

Call these as client.<service>.<method>(...). <service> is the client field for this group — the README lists the field name for every service. These pages group operations the way the OpenAPI specification tags them, which is not always one field per page.


getPasswordPolicy

GET /v2/manage/password-policies

Retrieve Password policy

Retrieves the Password policy settings for a specific Tenant.

Example

public static void callGetPasswordPolicy(LoginRadiusClient client) {
  try {
    var response = client.passwordPolicy.getPasswordPolicy();
    System.out.println(response);
  } catch (ApiException e) {
    LoginRadiusException lr = LoginRadiusClient.toLoginRadiusException(e);
    System.err.println(lr.description());
  }
}

Returns

PasswordPolicy


updatePasswordPolicy

PUT /v2/manage/password-policies

Update Password policy

Updates the Password policy settings for a specific Tenant.

Example

public static void callUpdatePasswordPolicy(LoginRadiusClient client) {
  PasswordPolicy passwordPolicy = new PasswordPolicy().dictionaryPasswordValidation(true).profileDataPasswordValidation(true).profileDataPasswordExactMatch(true); //Required

  try {
    var response = client.passwordPolicy.updatePasswordPolicy(passwordPolicy);
    System.out.println(response);
  } catch (ApiException e) {
    LoginRadiusException lr = LoginRadiusClient.toLoginRadiusException(e);
    System.err.println(lr.description());
  }
}

Request body

PasswordPolicy as application/json.

Returns

PasswordPolicy