org.kuali.rice.ksb.security
Class AbstractDigitalSigner

java.lang.Object
  extended by org.kuali.rice.ksb.security.AbstractDigitalSigner
All Implemented Interfaces:
DigitalSigner
Direct Known Subclasses:
HttpClientHeaderDigitalSigner, ResponseHeaderDigitalSigner

public abstract class AbstractDigitalSigner
extends Object
implements DigitalSigner

An abstract implementation of a DigitalSigner which provides convienance utilities for storing a reference to the Signature and also generating and encoding the actual digital signature.

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

Constructor Summary
AbstractDigitalSigner(Signature signature)
           
 
Method Summary
protected  String getEncodedCertificate(Certificate certificate)
           
protected  String getEncodedSignature()
           
 Signature getSignature()
          Retrieve a reference to Signature which will be used for signing.
protected  byte[] getSignatureBytes()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.kuali.rice.ksb.security.DigitalSigner
sign
 

Constructor Detail

AbstractDigitalSigner

public AbstractDigitalSigner(Signature signature)
Method Detail

getSignature

public Signature getSignature()
Description copied from interface: DigitalSigner
Retrieve a reference to Signature which will be used for signing.

Specified by:
getSignature in interface DigitalSigner

getSignatureBytes

protected byte[] getSignatureBytes()
                            throws Exception
Throws:
Exception

getEncodedSignature

protected String getEncodedSignature()
                              throws Exception
Throws:
Exception

getEncodedCertificate

protected String getEncodedCertificate(Certificate certificate)
                                throws Exception
Throws:
Exception


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