|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectmicrosoft.exchange.webservices.data.credential.ExchangeCredentials
microsoft.exchange.webservices.data.credential.WSSecurityBasedCredentials
public abstract class WSSecurityBasedCredentials
WSSecurityBasedCredentials is the base class for all credential classes using WS-Security.
| Field Summary | |
|---|---|
protected static String |
wsAddressingHeadersFormat
The Constant WsAddressingHeadersFormat. |
protected static String |
wsSecurityHeaderFormat
The Constant WsSecurityHeaderFormat. |
protected static String |
wsSecurityPathSuffix
The Constant WsSecurityPathSuffix. |
protected static String |
wsuTimeStampFormat
|
| Constructor Summary | |
|---|---|
protected |
WSSecurityBasedCredentials()
Initializes a new instance of the WSSecurityBasedCredentials class. |
protected |
WSSecurityBasedCredentials(String securityToken)
Initializes a new instance of the WSSecurityBasedCredentials class. |
protected |
WSSecurityBasedCredentials(String securityToken,
boolean addTimestamp)
Initializes a new instance of the WSSecurityBasedCredentials class. |
| Method Summary | |
|---|---|
URI |
adjustUrl(URI url)
Adjusts the URL based on the credential. |
void |
emitExtraSoapHeaderNamespaceAliases(XMLStreamWriter writer)
Emit the extra namespace aliases used for WS-Security and WS-Addressing. |
protected URI |
getEwsUrl()
Gets the EWS URL. |
protected String |
getSecurityToken()
Gets the security token. |
void |
preAuthenticate()
This method is called to pre-authenticate credential before a service request is made. |
void |
serializeExtraSoapHeaders(XMLStreamWriter writer,
String webMethodName)
Serialize the WS-Security and WS-Addressing SOAP headers. |
void |
serializeWSSecurityHeaders(XMLStreamWriter xmlWriter)
Creates the WS-Security header necessary to send with an outgoing request. |
protected void |
setEwsUrl(URI value)
Sets the EWS URL. |
protected void |
setSecurityToken(String value)
Sets the security token. |
| Methods inherited from class microsoft.exchange.webservices.data.credential.ExchangeCredentials |
|---|
getExchangeCredentialsFromNetworkCredential, getUriWithoutWSSecurity, isNeedSignature, prepareWebRequest, sign |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final String wsuTimeStampFormat
protected static final String wsAddressingHeadersFormat
protected static final String wsSecurityHeaderFormat
protected static final String wsSecurityPathSuffix
| Constructor Detail |
|---|
protected WSSecurityBasedCredentials()
protected WSSecurityBasedCredentials(String securityToken)
securityToken - The security token.
protected WSSecurityBasedCredentials(String securityToken,
boolean addTimestamp)
securityToken - The security token.addTimestamp - Timestamp should be added.| Method Detail |
|---|
public void preAuthenticate()
preAuthenticate in class ExchangeCredentials
public void emitExtraSoapHeaderNamespaceAliases(XMLStreamWriter writer)
throws XMLStreamException
emitExtraSoapHeaderNamespaceAliases in class ExchangeCredentialswriter - the writer
XMLStreamException - the XML stream exception
public void serializeExtraSoapHeaders(XMLStreamWriter writer,
String webMethodName)
throws XMLStreamException
serializeExtraSoapHeaders in class ExchangeCredentialswriter - the writerwebMethodName - the Web method being called
XMLStreamException - the XML stream exception
public void serializeWSSecurityHeaders(XMLStreamWriter xmlWriter)
throws XMLStreamException
serializeWSSecurityHeaders in class ExchangeCredentialsxmlWriter - The XML writer to serialize the headers to
XMLStreamException - the XML stream exception
public URI adjustUrl(URI url)
throws URISyntaxException
adjustUrl in class ExchangeCredentialsurl - The URL.
URISyntaxException - the uRI syntax exceptionprotected String getSecurityToken()
protected void setSecurityToken(String value)
protected URI getEwsUrl()
protected void setEwsUrl(URI value)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||