com.atlassian.jira.rest.v2.password
Class PasswordResource

java.lang.Object
  extended by com.atlassian.jira.rest.v2.password.PasswordResource

public class PasswordResource
extends Object

Since:
v6.1

Constructor Summary
PasswordResource(PasswordPolicyManager passwordPolicyManager, UserManager userManager)
           
 
Method Summary
 javax.ws.rs.core.Response getPasswordPolicy(boolean hasOldPassword)
          Returns user-friendly statements governing the system's password policy.
 javax.ws.rs.core.Response policyCheckCreateUser(PasswordPolicyCreateUserBean bean)
           
 javax.ws.rs.core.Response policyCheckUpdateUser(PasswordPolicyUpdateUserBean bean)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PasswordResource

public PasswordResource(PasswordPolicyManager passwordPolicyManager,
                        UserManager userManager)
Method Detail

getPasswordPolicy

public javax.ws.rs.core.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.

policyCheckCreateUser

public javax.ws.rs.core.Response policyCheckCreateUser(PasswordPolicyCreateUserBean bean)

policyCheckUpdateUser

public javax.ws.rs.core.Response policyCheckUpdateUser(PasswordPolicyUpdateUserBean bean)


Copyright © 2002-2014 Atlassian. All Rights Reserved.