com.atlassian.crowd.model.authentication
Class AuthenticatedToken

java.lang.Object
  extended by com.atlassian.crowd.model.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 verses the crowd server.

Version:
1.0
Author:
Justen Stepka
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 © 2013 Atlassian. All Rights Reserved.