Esri Geoportal Server
1.2.9

com.esri.gpt.agp.client
Class AgpToken

java.lang.Object
  extended by com.esri.gpt.agp.client.AgpToken

public class AgpToken
extends Object

A security token.


Constructor Summary
AgpToken()
          Default constructor.
 
Method Summary
 long getExpires()
          Gets the expiration time of the token in milliseconds since Jan 1st, 1970.
 String getReferer()
          Gets the referer.
 boolean getRequiresSSL()
          Gets the status indicating if the token must be always passed over SSL.
 String getTokenString()
          Gets the token string.
 void parseResponse(org.json.JSONObject jsoResponse)
          Parse the JSON response.
 void setExpires(long expires)
          Sets the expiration time of the token in milliseconds since Jan 1st, 1970.
 void setReferer(String referer)
          Sets the referer.
 void setRequiresSSL(boolean requiresSSL)
          Sets the status indicating if the token must be always passed over SSL.
 void setTokenString(String tokenString)
          Sets the token string.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AgpToken

public AgpToken()
Default constructor.

Method Detail

getExpires

public long getExpires()
Gets the expiration time of the token in milliseconds since Jan 1st, 1970.

Returns:
the expiration time

setExpires

public void setExpires(long expires)
Sets the expiration time of the token in milliseconds since Jan 1st, 1970.

Parameters:
expires - expiration time

getReferer

public String getReferer()
Gets the referer.

Returns:
the referer

setReferer

public void setReferer(String referer)
Sets the referer.

Parameters:
referer - the referer

getRequiresSSL

public boolean getRequiresSSL()
Gets the status indicating if the token must be always passed over SSL.

Returns:
true if SSL is required

setRequiresSSL

public void setRequiresSSL(boolean requiresSSL)
Sets the status indicating if the token must be always passed over SSL.

Parameters:
requiresSSL - true if SSL is required

getTokenString

public String getTokenString()
Gets the token string.

Returns:
the token string

setTokenString

public void setTokenString(String tokenString)
Sets the token string.

Parameters:
tokenString - the token string

parseResponse

public void parseResponse(org.json.JSONObject jsoResponse)
                   throws Exception
Parse the JSON response.

Parameters:
jsoResponse - the JSON response
Throws:
Exception - if an exception occurs

toString

public String toString()
Overrides:
toString in class Object

Esri Geoportal Server
1.2.9

Copyright 2011 Environmental Systems Research Institute. All rights reserved. Use is subject to license terms.