Class AuthenticationCommonsHttpInvokerRequestExecutor
java.lang.Object
org.springframework.remoting.httpinvoker.AbstractHttpInvokerRequestExecutor
org.springframework.remoting.httpinvoker.HttpComponentsHttpInvokerRequestExecutor
org.kuali.rice.ksb.messaging.KSBHttpInvokerRequestExecutor
org.kuali.rice.ksb.security.httpinvoker.AuthenticationCommonsHttpInvokerRequestExecutor
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanClassLoaderAware,org.springframework.remoting.httpinvoker.HttpInvokerRequestExecutor
public final class AuthenticationCommonsHttpInvokerRequestExecutor
extends KSBHttpInvokerRequestExecutor
Extension to
KSBHttpInvokerRequestExecutor that retrieves
credentials from the CredentialsSource and places them in a BASIC HTTP
Authorization header.- Since:
- 0.9
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
-
Field Summary
Fields inherited from class org.springframework.remoting.httpinvoker.AbstractHttpInvokerRequestExecutor
CONTENT_TYPE_SERIALIZED_OBJECT, ENCODING_GZIP, HTTP_HEADER_ACCEPT_ENCODING, HTTP_HEADER_ACCEPT_LANGUAGE, HTTP_HEADER_CONTENT_ENCODING, HTTP_HEADER_CONTENT_LENGTH, HTTP_HEADER_CONTENT_TYPE, HTTP_METHOD_POST, logger -
Constructor Summary
ConstructorsConstructorDescriptionAuthenticationCommonsHttpInvokerRequestExecutor(org.apache.http.client.HttpClient httpClient, org.kuali.rice.core.api.security.credentials.CredentialsSource credentialsSource, org.kuali.rice.ksb.api.bus.ServiceConfiguration serviceConfiguration) Constructor that accepts the CredentialsSource and Service Info. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidsetRequestBody(org.springframework.remoting.httpinvoker.HttpInvokerClientConfiguration config, org.apache.http.client.methods.HttpPost httpPost, ByteArrayOutputStream baos) Overridden to obtain the Credentials from the CredentialsSource and pass them via HTTP BASIC Authorization.Methods inherited from class org.kuali.rice.ksb.messaging.KSBHttpInvokerRequestExecutor
getDigitalSignatureService, getJavaSecurityManagementService, getResponseBody, getSecure, isSecure, setSecure, signRequest, validateResponseMethods inherited from class org.springframework.remoting.httpinvoker.HttpComponentsHttpInvokerRequestExecutor
createHttpPost, createRequestConfig, doExecuteRequest, executeHttpPost, getHttpClient, isGzipResponse, setConnectionRequestTimeout, setConnectTimeout, setHttpClient, setReadTimeoutMethods inherited from class org.springframework.remoting.httpinvoker.AbstractHttpInvokerRequestExecutor
createObjectInputStream, decorateInputStream, decorateOutputStream, doReadRemoteInvocationResult, doWriteRemoteInvocation, executeRequest, getBeanClassLoader, getByteArrayOutputStream, getContentType, isAcceptGzipEncoding, readRemoteInvocationResult, setAcceptGzipEncoding, setBeanClassLoader, setContentType, writeRemoteInvocation
-
Constructor Details
-
AuthenticationCommonsHttpInvokerRequestExecutor
public AuthenticationCommonsHttpInvokerRequestExecutor(org.apache.http.client.HttpClient httpClient, org.kuali.rice.core.api.security.credentials.CredentialsSource credentialsSource, org.kuali.rice.ksb.api.bus.ServiceConfiguration serviceConfiguration) Constructor that accepts the CredentialsSource and Service Info.- Parameters:
httpClient- the http clientcredentialsSource- the source of credentials.serviceConfiguration- the service configuration.
-
-
Method Details
-
setRequestBody
protected void setRequestBody(org.springframework.remoting.httpinvoker.HttpInvokerClientConfiguration config, org.apache.http.client.methods.HttpPost httpPost, ByteArrayOutputStream baos) throws IOException Overridden to obtain the Credentials from the CredentialsSource and pass them via HTTP BASIC Authorization.- Overrides:
setRequestBodyin classKSBHttpInvokerRequestExecutor- Throws:
IOException
-