Class DigitalSigningInterceptor
- java.lang.Object
-
- org.jboss.resteasy.security.doseta.DigitalSigningInterceptor
-
- All Implemented Interfaces:
jakarta.ws.rs.client.ClientRequestFilter,jakarta.ws.rs.container.ContainerResponseFilter,jakarta.ws.rs.ext.WriterInterceptor,AsyncWriterInterceptor
@Provider @Priority(4000) public class DigitalSigningInterceptor extends Object implements AsyncWriterInterceptor, jakarta.ws.rs.container.ContainerResponseFilter, jakarta.ws.rs.client.ClientRequestFilter
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
-
-
Constructor Summary
Constructors Constructor Description DigitalSigningInterceptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaroundWriteTo(jakarta.ws.rs.ext.WriterInterceptorContext context)CompletionStage<Void>asyncAroundWriteTo(AsyncWriterInterceptorContext context)voidfilter(jakarta.ws.rs.client.ClientRequestContext requestContext)voidfilter(jakarta.ws.rs.container.ContainerRequestContext requestContext, jakarta.ws.rs.container.ContainerResponseContext responseContext)protected List<DKIMSignature>getHeaders(jakarta.ws.rs.core.MultivaluedMap<String,Object> headers)protected voidsign(KeyRepository repository, jakarta.ws.rs.core.MultivaluedMap<String,Object> headers, byte[] body, DKIMSignature dosetaSignature)
-
-
-
Method Detail
-
getHeaders
protected List<DKIMSignature> getHeaders(jakarta.ws.rs.core.MultivaluedMap<String,Object> headers)
-
filter
public void filter(jakarta.ws.rs.client.ClientRequestContext requestContext) throws IOException- Specified by:
filterin interfacejakarta.ws.rs.client.ClientRequestFilter- Throws:
IOException
-
filter
public void filter(jakarta.ws.rs.container.ContainerRequestContext requestContext, jakarta.ws.rs.container.ContainerResponseContext responseContext) throws IOException- Specified by:
filterin interfacejakarta.ws.rs.container.ContainerResponseFilter- Throws:
IOException
-
aroundWriteTo
public void aroundWriteTo(jakarta.ws.rs.ext.WriterInterceptorContext context) throws IOException, jakarta.ws.rs.WebApplicationException- Specified by:
aroundWriteToin interfacejakarta.ws.rs.ext.WriterInterceptor- Throws:
IOExceptionjakarta.ws.rs.WebApplicationException
-
asyncAroundWriteTo
public CompletionStage<Void> asyncAroundWriteTo(AsyncWriterInterceptorContext context)
- Specified by:
asyncAroundWriteToin interfaceAsyncWriterInterceptor
-
sign
protected void sign(KeyRepository repository, jakarta.ws.rs.core.MultivaluedMap<String,Object> headers, byte[] body, DKIMSignature dosetaSignature) throws NoSuchAlgorithmException, InvalidKeyException, SignatureException, UnsupportedEncodingException
-
-