org.kuali.rice.ksb.security
Class HttpClientHeaderDigitalSigner

java.lang.Object
  extended by org.kuali.rice.ksb.security.AbstractDigitalSigner
      extended by org.kuali.rice.ksb.security.HttpClientHeaderDigitalSigner
All Implemented Interfaces:
DigitalSigner

public class HttpClientHeaderDigitalSigner
extends AbstractDigitalSigner

A DigitalSigner implementation which places the alias and digital signature into the request headers of the commons HttpClient's HttpMethod.

Author:
Kuali Rice Team (rice.collab@kuali.org)

Constructor Summary
HttpClientHeaderDigitalSigner(Signature signature, org.apache.commons.httpclient.HttpMethod method, Certificate certificate)
           
HttpClientHeaderDigitalSigner(Signature signature, org.apache.commons.httpclient.HttpMethod method, String alias)
           
HttpClientHeaderDigitalSigner(Signature signature, org.apache.commons.httpclient.HttpMethod method, String alias, Certificate certificate)
           
 
Method Summary
 void sign()
          Sign the message using the Signature.
 
Methods inherited from class org.kuali.rice.ksb.security.AbstractDigitalSigner
getEncodedCertificate, getEncodedSignature, getSignature, getSignatureBytes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpClientHeaderDigitalSigner

public HttpClientHeaderDigitalSigner(Signature signature,
                                     org.apache.commons.httpclient.HttpMethod method,
                                     String alias)

HttpClientHeaderDigitalSigner

public HttpClientHeaderDigitalSigner(Signature signature,
                                     org.apache.commons.httpclient.HttpMethod method,
                                     String alias,
                                     Certificate certificate)

HttpClientHeaderDigitalSigner

public HttpClientHeaderDigitalSigner(Signature signature,
                                     org.apache.commons.httpclient.HttpMethod method,
                                     Certificate certificate)
Method Detail

sign

public void sign()
          throws Exception
Description copied from interface: DigitalSigner
Sign the message using the Signature. This method will not be called until all of the message data has been populated into the Signature. After signing implementations may, for example, place the digital signature in a header or perform whatever steps are required to successfully sign the message.

Throws:
Exception


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