com.atlassian.crowd.integration.authentication
Class AuthenticatedToken

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

public class AuthenticatedToken
extends Object
implements Serializable

An authentication token maps the valid authentication. The token attribute maintains a unique identifier that can be validated against the crowd server.

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

See Also:
Serialized Form

Constructor Summary
AuthenticatedToken()
          Default constructor.
AuthenticatedToken(String name, String token)
           
 
Method Summary
 boolean equals(Object o)
           
 String getName()
          Gets the name of the authenticated client.
 String getToken()
          Gets the token.
 int hashCode()
           
 void setName(String name)
          Sets the name of the authenticated client.
 void setToken(String token)
          Sets the token.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AuthenticatedToken

public AuthenticatedToken()
Default constructor.


AuthenticatedToken

public AuthenticatedToken(String name,
                          String token)
Parameters:
name - The name of the authenticated principal or application.
token - The token.
Method Detail

getName

public String getName()
Gets the name of the authenticated client.

Returns:
The name.

setName

public void setName(String name)
Sets the name of the authenticated client.

Parameters:
name - The name.

getToken

public String getToken()
Gets the token.

Returns:
The token.

setToken

public void setToken(String token)
Sets the token.

Parameters:
token - The token.

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