Class AuthenticationContext
java.lang.Object
com.atlassian.crowd.model.authentication.AuthenticationContext
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ApplicationAuthenticationContext
,UserAuthenticationContext
Minimal information necessary when authenticating with the Crowd server.
- See Also:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
protected
AuthenticationContext
(String name, PasswordCredential credential, ValidationFactor[] validationFactors) -
Method Summary
Modifier and TypeMethodDescriptionboolean
Gets the authenticating credential information.getName()
Gets the name of the authenticating entity.Gets the authenticating validation factors.int
hashCode()
void
setCredential
(PasswordCredential credential) Sets the authenticating credential information.void
Sets the name of the authenticating entity.void
setValidationFactors
(ValidationFactor[] validationFactors) Sets the authenticating validation factors.toString()
-
Constructor Details
-
AuthenticationContext
protected AuthenticationContext() -
AuthenticationContext
protected AuthenticationContext(String name, @Nullable PasswordCredential credential, ValidationFactor[] validationFactors)
-
-
Method Details
-
getName
Gets the name of the authenticating entity.- Returns:
- The name.
-
setName
Sets the name of the authenticating entity.- Parameters:
name
- The name.
-
getCredential
Gets the authenticating credential information.- Returns:
- The credentials.
-
setCredential
Sets the authenticating credential information.- Parameters:
credential
- The credentials.
-
getValidationFactors
Gets the authenticating validation factors.- Returns:
- The validation factors.
-
setValidationFactors
Sets the authenticating validation factors.- Parameters:
validationFactors
- The validation factors.
-
equals
-
hashCode
public int hashCode() -
toString
-