org.jboss.resteasy.security.doseta
Class DigitalSigningInterceptor

java.lang.Object
  extended by org.jboss.resteasy.security.doseta.DigitalSigningInterceptor
All Implemented Interfaces:
MessageBodyWriterInterceptor

@Provider
public class DigitalSigningInterceptor
extends Object
implements MessageBodyWriterInterceptor

Version:
$Revision: 1 $
Author:
Bill Burke

Constructor Summary
DigitalSigningInterceptor()
           
 
Method Summary
protected  void sign(MessageBodyWriterContext context, MultivaluedMap<String,Object> headers, byte[] body, DKIMSignature dosetaSignature)
           
 void write(MessageBodyWriterContext context)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DigitalSigningInterceptor

public DigitalSigningInterceptor()
Method Detail

write

public void write(MessageBodyWriterContext context)
           throws IOException,
                  WebApplicationException
Specified by:
write in interface MessageBodyWriterInterceptor
Throws:
IOException
WebApplicationException

sign

protected void sign(MessageBodyWriterContext context,
                    MultivaluedMap<String,Object> headers,
                    byte[] body,
                    DKIMSignature dosetaSignature)
             throws NoSuchAlgorithmException,
                    InvalidKeyException,
                    SignatureException,
                    UnsupportedEncodingException
Throws:
NoSuchAlgorithmException
InvalidKeyException
SignatureException
UnsupportedEncodingException


Copyright © 2011. All Rights Reserved.