org.kuali.rice.ksb.security.httpinvoker
Class AuthenticationCommonsHttpInvokerRequestExecutor

java.lang.Object
  extended by org.springframework.remoting.httpinvoker.AbstractHttpInvokerRequestExecutor
      extended by org.springframework.remoting.httpinvoker.CommonsHttpInvokerRequestExecutor
          extended by org.kuali.rice.ksb.messaging.KSBHttpInvokerRequestExecutor
              extended by 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
AuthenticationCommonsHttpInvokerRequestExecutor(org.apache.commons.httpclient.HttpClient httpClient, CredentialsSource credentialsSource, ServiceConfiguration serviceConfiguration)
          Constructor that accepts the CredentialsSource and Service Info.
 
Method Summary
protected  void setRequestBody(org.springframework.remoting.httpinvoker.HttpInvokerClientConfiguration config, org.apache.commons.httpclient.methods.PostMethod postMethod, 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, validateResponse
 
Methods inherited from class org.springframework.remoting.httpinvoker.CommonsHttpInvokerRequestExecutor
createPostMethod, doExecuteRequest, executePostMethod, getHttpClient, isGzipResponse, setConnectTimeout, setHttpClient, setReadTimeout
 
Methods inherited from class org.springframework.remoting.httpinvoker.AbstractHttpInvokerRequestExecutor
createObjectInputStream, decorateInputStream, decorateOutputStream, doReadRemoteInvocationResult, doWriteRemoteInvocation, executeRequest, getBeanClassLoader, getByteArrayOutputStream, getContentType, isAcceptGzipEncoding, readRemoteInvocationResult, setAcceptGzipEncoding, setBeanClassLoader, setContentType, writeRemoteInvocation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AuthenticationCommonsHttpInvokerRequestExecutor

public AuthenticationCommonsHttpInvokerRequestExecutor(org.apache.commons.httpclient.HttpClient httpClient,
                                                       CredentialsSource credentialsSource,
                                                       ServiceConfiguration serviceConfiguration)
Constructor that accepts the CredentialsSource and Service Info.

Parameters:
credentialsSource - the source of credentials.
serviceInfo - information about the service.
Method Detail

setRequestBody

protected void setRequestBody(org.springframework.remoting.httpinvoker.HttpInvokerClientConfiguration config,
                              org.apache.commons.httpclient.methods.PostMethod postMethod,
                              ByteArrayOutputStream baos)
                       throws IOException
Overridden to obtain the Credentials from the CredentialsSource and pass them via HTTP BASIC Authorization.

Overrides:
setRequestBody in class KSBHttpInvokerRequestExecutor
Throws:
IOException


Copyright © 2005-2013 The Kuali Foundation. All Rights Reserved.