com.atlassian.crowd.embedded.api
Class ValidatePasswordRequest

java.lang.Object
  extended by com.atlassian.crowd.embedded.api.ValidatePasswordRequest

public final class ValidatePasswordRequest
extends Object

Password validation request.


Constructor Summary
ValidatePasswordRequest(PasswordCredential password, User user)
          Creates a new ValidateRequest.
 
Method Summary
 boolean equals(Object o)
           
 PasswordCredential getPassword()
           
 User getUser()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ValidatePasswordRequest

public ValidatePasswordRequest(PasswordCredential password,
                               User user)
Creates a new ValidateRequest.

Parameters:
password - the (unencrypted) password to validate
user - the User for whom to validate the password
Throws:
NullPointerException - if password or user is null
IllegalArgumentException - if password is encrypted
Method Detail

getPassword

public PasswordCredential getPassword()
Returns:
the (unencrypted) password to validate

getUser

public User getUser()
Returns:
the User for whom to validate a password

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2016 Atlassian. All Rights Reserved.