com.atlassian.crowd.integration.authentication
Class ValidationFactor

java.lang.Object
  extended by com.atlassian.crowd.integration.authentication.ValidationFactor
All Implemented Interfaces:
Serializable

public class ValidationFactor
extends Object
implements 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 makes an authentication attempt, if the validation factors do not match the client will then be considered invalid.

Use for SOAP only. Class exists strictly to maintain Crowd 2.0.x compatibility.

See Also:
Serialized Form

Field Summary
static String NAME
          Application name
static String PRIVILEGE_LEVEL
          Application-specific privilege level.
static String RANDOM_NUMBER
          The Key that represents the generated 'Random-Number' ValidationFactor
static String REMOTE_ADDRESS
          The key to use when setting the client remote address.
static String REMOTE_HOST
          If you need to set the host - use only for an application.
static String X_FORWARDED_FOR
          The key to use when setting the client remote forwarding address through a proxy.
 
Constructor Summary
ValidationFactor()
           
ValidationFactor(String name, String value)
           
 
Method Summary
 boolean equals(Object o)
           
 String getName()
          Gets the name.
 String getValue()
          Gets the value.
 int hashCode()
           
 void setName(String name)
          Sets the name.
 void setValue(String value)
          Sets the value.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

REMOTE_ADDRESS

public static final String 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:
Constant Field Values

REMOTE_HOST

public static final String REMOTE_HOST
If you need to set the host - use only for an application.

See Also:
Constant Field Values

X_FORWARDED_FOR

public static final String X_FORWARDED_FOR
The key to use when setting the client remote forwarding address through a proxy.

See Also:
Constant Field Values

RANDOM_NUMBER

public static final String RANDOM_NUMBER
The Key that represents the generated 'Random-Number' ValidationFactor

See Also:
Constant Field Values

NAME

public static final String NAME
Application name

See Also:
Constant Field Values

PRIVILEGE_LEVEL

public static final String 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:
Constant Field Values
Constructor Detail

ValidationFactor

public ValidationFactor()

ValidationFactor

public ValidationFactor(String name,
                        String value)
Method Detail

getName

public String getName()
Gets the name.

Returns:
The name.

setName

public void setName(String name)
Sets the name.

Parameters:
name - The name.

getValue

public String getValue()
Gets the value.

Returns:
The value.

setValue

public void setValue(String value)
Sets the value.

Parameters:
value - The value.

toString

public String toString()
Overrides:
toString in class Object

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2013 Atlassian. All Rights Reserved.