com.atlassian.crowd.model.authentication
Class AuthenticationContext

java.lang.Object
  extended by com.atlassian.crowd.model.authentication.AuthenticationContext
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ApplicationAuthenticationContext, UserAuthenticationContext

public abstract class AuthenticationContext
extends Object
implements Serializable

Minimal information necessary when authenticating with the Crowd server.

See Also:
Serialized Form

Constructor Summary
protected AuthenticationContext()
           
protected AuthenticationContext(String name, com.atlassian.crowd.embedded.api.PasswordCredential credential, ValidationFactor[] validationFactors)
           
 
Method Summary
 boolean equals(Object o)
           
 com.atlassian.crowd.embedded.api.PasswordCredential getCredential()
          Gets the authenticating credential information.
 String getName()
          Gets the name of the authenticating entity.
 ValidationFactor[] getValidationFactors()
          Gets the authenticating validation factors.
 int hashCode()
           
 void setCredential(com.atlassian.crowd.embedded.api.PasswordCredential credential)
          Sets the authenticating credential information.
 void setName(String name)
          Sets the name of the authenticating entity.
 void setValidationFactors(ValidationFactor[] validationFactors)
          Sets the authenticating validation factors.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AuthenticationContext

protected AuthenticationContext()

AuthenticationContext

protected AuthenticationContext(String name,
                                com.atlassian.crowd.embedded.api.PasswordCredential credential,
                                ValidationFactor[] validationFactors)
Method Detail

getName

public String getName()
Gets the name of the authenticating entity.

Returns:
The name.

setName

public void setName(String name)
Sets the name of the authenticating entity.

Parameters:
name - The name.

getCredential

public com.atlassian.crowd.embedded.api.PasswordCredential getCredential()
Gets the authenticating credential information.

Returns:
The credentials.

setCredential

public void setCredential(com.atlassian.crowd.embedded.api.PasswordCredential credential)
Sets the authenticating credential information.

Parameters:
credential - The credentials.

getValidationFactors

public ValidationFactor[] getValidationFactors()
Gets the authenticating validation factors.

Returns:
The validation factors.

setValidationFactors

public void setValidationFactors(ValidationFactor[] validationFactors)
Sets the authenticating validation factors.

Parameters:
validationFactors - The validation factors.

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 © 2013 Atlassian. All Rights Reserved.