|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectmicrosoft.exchange.webservices.data.credential.ExchangeCredentials
public abstract class ExchangeCredentials
Base class of Exchange credential types.
| Constructor Summary | |
|---|---|
ExchangeCredentials()
|
|
| Method Summary | |
|---|---|
URI |
adjustUrl(URI url)
Adjusts the URL endpoint based on the credential. |
void |
emitExtraSoapHeaderNamespaceAliases(XMLStreamWriter writer)
Emit any extra necessary namespace aliases for the SOAP:header block. |
static ExchangeCredentials |
getExchangeCredentialsFromNetworkCredential(String userName,
String password,
String domain)
Performs an implicit conversion from |
protected static String |
getUriWithoutWSSecurity(URI url)
Return the url without ws-security address. |
boolean |
isNeedSignature()
Gets the flag indicating whether any sign action need taken. |
void |
preAuthenticate()
This method is called to pre-authenticate credential before a service request is made. |
void |
prepareWebRequest(HttpWebRequest client)
This method is called to apply credential to a service request before the request is made. |
void |
serializeExtraSoapHeaders(XMLStreamWriter writer,
String webMethodName)
Serialize any extra necessary SOAP headers. |
void |
serializeWSSecurityHeaders(XMLStreamWriter writer)
Serialize SOAP headers used for authentication schemes that rely on WS-Security. |
void |
sign(ByteArrayOutputStream memoryStream)
Add the signature element to the memory stream. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ExchangeCredentials()
| Method Detail |
|---|
public static ExchangeCredentials getExchangeCredentialsFromNetworkCredential(String userName,
String password,
String domain)
userName - Account user name.password - Account password.domain - Account domain.
protected static String getUriWithoutWSSecurity(URI url)
url - The url
public void preAuthenticate()
public void prepareWebRequest(HttpWebRequest client)
throws URISyntaxException
client - The request.
URISyntaxException - the uRI syntax exception
public void emitExtraSoapHeaderNamespaceAliases(XMLStreamWriter writer)
throws XMLStreamException
writer - the writer
XMLStreamException - the XML stream exception
public void serializeExtraSoapHeaders(XMLStreamWriter writer,
String webMethodName)
throws XMLStreamException
writer - the writerwebMethodName - the Web method being called
XMLStreamException - the XML stream exception
public URI adjustUrl(URI url)
throws URISyntaxException
url - The URL.
URISyntaxExceptionpublic boolean isNeedSignature()
public void sign(ByteArrayOutputStream memoryStream)
throws Exception
memoryStream - The memory stream.
Exception
public void serializeWSSecurityHeaders(XMLStreamWriter writer)
throws XMLStreamException
writer - the writer
XMLStreamException - the XML stream exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||