public class

PasswordResource

extends Object
java.lang.Object
   ↳ com.atlassian.jira.rest.v2.password.PasswordResource

Summary

Public Constructors
PasswordResource(PasswordPolicyManager passwordPolicyManager, UserManager userManager)
Public Methods
Response getPasswordPolicy(boolean hasOldPassword)
Returns user-friendly statements governing the system's password policy.
Response policyCheckCreateUser(PasswordPolicyCreateUserBean bean)
Response policyCheckUpdateUser(PasswordPolicyUpdateUserBean bean)
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public PasswordResource (PasswordPolicyManager passwordPolicyManager, UserManager userManager)

Public Methods

public Response getPasswordPolicy (boolean hasOldPassword)

Returns user-friendly statements governing the system's password policy.

Parameters
hasOldPassword whether or not the user will be required to enter their current password. Use false (the default) if this is a new user or if an administrator is forcibly changing another user's password.
Returns
  • a response containing a JSON array of the user-facing messages. If no policy is set, then this will be an empty list.

public Response policyCheckCreateUser (PasswordPolicyCreateUserBean bean)

public Response policyCheckUpdateUser (PasswordPolicyUpdateUserBean bean)