com.sap.security.core.client.ws
Class SecurityProtocol
com.sap.security.core.client.ws.SecurityProtocol
- All Implemented Interfaces:
- ConsumerSecurityProtocolInterface
- public class SecurityProtocol
- implements ConsumerSecurityProtocolInterface
|
Method Summary |
void |
addHeader(java.lang.String key,
java.lang.String value)
Add an entry to the list of HTTP headers |
protected void |
display(java.lang.String path,
com.sap.engine.services.webservices.jaxrpc.wsdl2java.PropertyContext ctx)
Method for debugging the property context |
AuthenticationContext |
getAuthenticationContext()
|
AuthenticationContextInterface |
getClientAuthenticationContext()
Return the authentication context for setting authentication credentials |
java.lang.String[] |
getFeatures()
|
java.lang.String |
getName()
|
boolean |
handleFault(com.sap.engine.services.webservices.jaxrpc.wsdl2java.AbstractMessage arg0,
com.sap.engine.services.webservices.jaxrpc.wsdl2java.PropertyContext arg1)
|
boolean |
handleRequest(com.sap.engine.services.webservices.jaxrpc.wsdl2java.AbstractMessage message,
com.sap.engine.services.webservices.jaxrpc.wsdl2java.PropertyContext context)
|
boolean |
handleResponse(com.sap.engine.services.webservices.jaxrpc.wsdl2java.AbstractMessage arg0,
com.sap.engine.services.webservices.jaxrpc.wsdl2java.PropertyContext arg1)
|
void |
init(com.sap.engine.services.webservices.jaxrpc.wsdl2java.PropertyContext ctx)
|
protected void |
internalSetHTTPHeaders(com.sap.engine.services.webservices.jaxrpc.wsdl2java.PropertyContext context)
Take all headers and set them to the HTTP transport binding |
void |
invalidateSession()
Invalidate the current session. |
boolean |
isFeatureImplemented(java.lang.String featureName,
com.sap.engine.services.webservices.jaxrpc.wsdl2java.PropertyContext arg1)
|
protected void |
setAuthenticationContext(AuthenticationContext authenticationContext)
Sets the authenticationContext. |
void |
setHTTPDestination(java.lang.String destinationName,
java.lang.String urlPostfix)
Set the name of an destination of type HTTP to be used.
|
PROTOCOL_NAME
public static final java.lang.String PROTOCOL_NAME
customDestinationName
protected java.lang.String customDestinationName
customUrlPostfix
protected java.lang.String customUrlPostfix
SecurityProtocol
public SecurityProtocol()
init
public void init(com.sap.engine.services.webservices.jaxrpc.wsdl2java.PropertyContext ctx)
getAuthenticationContext
public AuthenticationContext getAuthenticationContext()
getClientAuthenticationContext
public AuthenticationContextInterface getClientAuthenticationContext()
- Description copied from interface:
ConsumerSecurityProtocolInterface
- Return the authentication context for setting authentication credentials
- Specified by:
getClientAuthenticationContext in interface ConsumerSecurityProtocolInterface
- Following copied from interface:
com.sap.engine.services.wssec.srt.protocols.ConsumerSecurityProtocolInterface
- Returns:
-
getFeatures
public java.lang.String[] getFeatures()
- See Also:
com.sap.engine.services.webservices.jaxrpc.wsdl2java.FeatureProvider#getFeatures()
getName
public java.lang.String getName()
- See Also:
com.sap.engine.services.webservices.jaxrpc.wsdl2java.FeatureProvider#getName()
isFeatureImplemented
public boolean isFeatureImplemented(java.lang.String featureName,
com.sap.engine.services.webservices.jaxrpc.wsdl2java.PropertyContext arg1)
- See Also:
com.sap.engine.services.webservices.jaxrpc.wsdl2java.FeatureProvider#isFeatureImplemented(String, PropertyContext)
handleFault
public boolean handleFault(com.sap.engine.services.webservices.jaxrpc.wsdl2java.AbstractMessage arg0,
com.sap.engine.services.webservices.jaxrpc.wsdl2java.PropertyContext arg1)
throws com.sap.engine.services.webservices.jaxrpc.wsdl2java.ClientProtocolException
- See Also:
com.sap.engine.services.webservices.jaxrpc.wsdl2java.AbstractProtocol#handleFault(AbstractMessage, PropertyContext)
internalSetHTTPHeaders
protected void internalSetHTTPHeaders(com.sap.engine.services.webservices.jaxrpc.wsdl2java.PropertyContext context)
- Take all headers and set them to the HTTP transport binding
- Parameters:
context -
handleRequest
public boolean handleRequest(com.sap.engine.services.webservices.jaxrpc.wsdl2java.AbstractMessage message,
com.sap.engine.services.webservices.jaxrpc.wsdl2java.PropertyContext context)
throws com.sap.engine.services.webservices.jaxrpc.wsdl2java.ClientProtocolException
handleResponse
public boolean handleResponse(com.sap.engine.services.webservices.jaxrpc.wsdl2java.AbstractMessage arg0,
com.sap.engine.services.webservices.jaxrpc.wsdl2java.PropertyContext arg1)
throws com.sap.engine.services.webservices.jaxrpc.wsdl2java.ClientProtocolException
- See Also:
com.sap.engine.services.webservices.jaxrpc.wsdl2java.AbstractProtocol#handleResponse(AbstractMessage, PropertyContext)
addHeader
public void addHeader(java.lang.String key,
java.lang.String value)
- Add an entry to the list of HTTP headers
- Specified by:
addHeader in interface ConsumerSecurityProtocolInterface
- Following copied from interface:
com.sap.engine.services.wssec.srt.protocols.ConsumerSecurityProtocolInterface
- Parameters:
key - value -
display
protected void display(java.lang.String path,
com.sap.engine.services.webservices.jaxrpc.wsdl2java.PropertyContext ctx)
- Method for debugging the property context
setAuthenticationContext
protected void setAuthenticationContext(AuthenticationContext authenticationContext)
- Sets the authenticationContext.
- Parameters:
authenticationContext - The authenticationContext to set
invalidateSession
public void invalidateSession()
- Description copied from interface:
ConsumerSecurityProtocolInterface
- Invalidate the current session. Must be called when switching the credentials in the authentication context.
- Specified by:
invalidateSession in interface ConsumerSecurityProtocolInterface
setHTTPDestination
public void setHTTPDestination(java.lang.String destinationName,
java.lang.String urlPostfix)
throws OperationNotSupportedException
- Description copied from interface:
ConsumerSecurityProtocolInterface
- Set the name of an destination of type HTTP to be used.
All authentication settings are taken from the destination.
In case an URL is present in the destination it is used as endpoint
In case no URL is present in the destination, the destination configured in the logical port is used
In case a non null postfix was specified, that one is appended to the URL
This operation is only supported on standalone proxies running on the J2EE engine
- Specified by:
setHTTPDestination in interface ConsumerSecurityProtocolInterface