com.atlassian.crowd.integration.authentication
Class AuthenticatedToken

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

public class AuthenticatedToken
extends java.lang.Object
implements java.io.Serializable

An authentication token maps the valid authentication. The token attribute maintains a unique identifier that can be validated verses 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(java.lang.String name, java.lang.String token)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.lang.String getName()
          Gets the name of the authenticated client..
 java.lang.String getToken()
          Gets the token.
 int hashCode()
           
 void setName(java.lang.String name)
          Sets the name of the authenticated client.
 void setToken(java.lang.String token)
          Sets the token.
 java.lang.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(java.lang.String name,
                          java.lang.String token)
Parameters:
name - The name of the authenticated principal or application.
token - The token.
Method Detail

getName

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

Returns:
The name.

setName

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

Parameters:
name - The name.

getToken

public java.lang.String getToken()
Gets the token.

Returns:
The token.

setToken

public void setToken(java.lang.String token)
Sets the token.

Parameters:
token - The token.

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.