microsoft.exchange.webservices.data
Class TokenCredentials

java.lang.Object
  extended by microsoft.exchange.webservices.data.ExchangeCredentials
      extended by microsoft.exchange.webservices.data.WSSecurityBasedCredentials
          extended by microsoft.exchange.webservices.data.TokenCredentials

public final class TokenCredentials
extends WSSecurityBasedCredentials

TokenCredentials provides credentials if you already have a token.


Field Summary
 
Fields inherited from class microsoft.exchange.webservices.data.WSSecurityBasedCredentials
WSAddressing10Namespace, WSAddressing10NamespacePrefix, WsAddressingHeadersFormat, WsSecurityHeaderFormat, WsSecurityPathSuffix, WSSecuritySecExt10Namespace, WSSecuritySecExt10NamespacePrefix
 
Constructor Summary
TokenCredentials(String securityToken)
          Initializes a new instance of the TokenCredentials class.
 
Method Summary
protected  void prepareWebRequest(microsoft.exchange.webservices.data.HttpWebRequest request)
          This method is called to apply credentials to a service request before the request is made.
 
Methods inherited from class microsoft.exchange.webservices.data.WSSecurityBasedCredentials
adjustUrl, emitExtraSoapHeaderNamespaceAliases, getEwsUrl, getSecurityToken, preAuthenticate, serializeExtraSoapHeaders, serializeWSSecurityHeaders, setEwsUrl, setSecurityToken
 
Methods inherited from class microsoft.exchange.webservices.data.ExchangeCredentials
getExchangeCredentialsFromNetworkCredential
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TokenCredentials

public TokenCredentials(String securityToken)
                 throws Exception
Initializes a new instance of the TokenCredentials class.

Parameters:
securityToken - The token.
Throws:
ArgumentNullException - the argument null exception
Exception
Method Detail

prepareWebRequest

protected void prepareWebRequest(microsoft.exchange.webservices.data.HttpWebRequest request)
                          throws URISyntaxException
This method is called to apply credentials to a service request before the request is made.

Overrides:
prepareWebRequest in class ExchangeCredentials
Parameters:
request - The request.
Throws:
URISyntaxException - the uRI syntax exception


Copyright © 2012. All Rights Reserved.