Class ValidationFactor
java.lang.Object
com.atlassian.crowd.model.authentication.ValidationFactor
- All Implemented Interfaces:
Serializable
Validation factors are used to construct a unique token when a
com.atlassian.crowd.integration.model.RemotePrincipal
authenticates with the crowd server. When the remote principal later attempts an authentication or authentication
attempt if the validation factors do not match the client will then be considered invalid.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
Application namestatic final String
Application-specific privilege level.static final String
The Key that represents the generated 'Random-Number' ValidationFactorstatic final String
The key to use when setting the client remote address.static final String
If you need to set the host - use only for an application.static final String
The key to use when setting the client remote forwarding address through a proxy. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
REMOTE_ADDRESS
The key to use when setting the client remote address. Host should not be used because if a DNS server is compromised, the host value can then be forged.- See Also:
-
REMOTE_HOST
If you need to set the host - use only for an application.- See Also:
-
X_FORWARDED_FOR
The key to use when setting the client remote forwarding address through a proxy.- See Also:
-
RANDOM_NUMBER
The Key that represents the generated 'Random-Number' ValidationFactor- See Also:
-
NAME
Application name- See Also:
-
PRIVILEGE_LEVEL
Application-specific privilege level. This exists to allow applications to create multiple tokens for the same user with different privileges (e.g., WebSudo). Its values are application-specific.- See Also:
-
-
Constructor Details
-
ValidationFactor
public ValidationFactor() -
ValidationFactor
-
-
Method Details
-
getName
Gets the name.- Returns:
- The name.
-
setName
Sets the name.- Parameters:
name
- The name.
-
getValue
Gets the value.- Returns:
- The value.
-
setValue
Sets the value.- Parameters:
value
- The value.
-
toString
-
equals
-
hashCode
public int hashCode()
-