microsoft.exchange.webservices.data.credential
Class TokenCredentials
java.lang.Object
microsoft.exchange.webservices.data.credential.ExchangeCredentials
microsoft.exchange.webservices.data.credential.WSSecurityBasedCredentials
microsoft.exchange.webservices.data.credential.TokenCredentials
public final class TokenCredentials
- extends WSSecurityBasedCredentials
TokenCredentials provides credential if you already have a token.
|
Constructor Summary |
TokenCredentials(String securityToken)
Initializes a new instance of the TokenCredentials class. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
prepareWebRequest
public void prepareWebRequest(HttpWebRequest request)
throws URISyntaxException
- This method is called to apply credential 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–2015 Microsoft. All rights reserved.