com.atlassian.crowd.model.authentication
Class AuthenticationContext

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

public abstract class AuthenticationContext
extends java.lang.Object
implements java.io.Serializable

Minimal information necessary when authenticating with the Crowd server.

See Also:
Serialized Form

Constructor Summary
protected AuthenticationContext()
           
protected AuthenticationContext(java.lang.String name, PasswordCredential credential, ValidationFactor[] validationFactors)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 PasswordCredential getCredential()
          Gets the authenticating credential information.
 java.lang.String getName()
          Gets the name of the authenticating entity.
 ValidationFactor[] getValidationFactors()
          Gets the authenticating validation factors.
 int hashCode()
           
 void setCredential(PasswordCredential credential)
          Sets the authenticating credential information.
 void setName(java.lang.String name)
          Sets the name of the authenticating entity.
 void setValidationFactors(ValidationFactor[] validationFactors)
          Sets the autenticating validation factors.
 java.lang.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(java.lang.String name,
                                PasswordCredential credential,
                                ValidationFactor[] validationFactors)
Method Detail

getName

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

Returns:
The name.

setName

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

Parameters:
name - The name.

getCredential

public PasswordCredential getCredential()
Gets the authenticating credential information.

Returns:
The credentials.

setCredential

public void setCredential(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 autenticating validation factors.

Parameters:
validationFactors - The validation factors.

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2010 Atlassian. All Rights Reserved.