@Provider @Priority(value=4000) public class DigitalSigningInterceptor extends Object implements AsyncWriterInterceptor, javax.ws.rs.container.ContainerResponseFilter, javax.ws.rs.client.ClientRequestFilter
| Constructor and Description |
|---|
DigitalSigningInterceptor() |
| Modifier and Type | Method and Description |
|---|---|
void |
aroundWriteTo(javax.ws.rs.ext.WriterInterceptorContext context) |
CompletionStage<Void> |
asyncAroundWriteTo(AsyncWriterInterceptorContext context)
Interceptor method wrapping calls to
AsyncMessageBodyWriter.asyncWriteTo(T, java.lang.Class<?>, java.lang.reflect.Type, java.lang.annotation.Annotation[], javax.ws.rs.core.MediaType, javax.ws.rs.core.MultivaluedMap<java.lang.String, java.lang.Object>, org.jboss.resteasy.spi.AsyncOutputStream) method. |
void |
filter(javax.ws.rs.client.ClientRequestContext requestContext) |
void |
filter(javax.ws.rs.container.ContainerRequestContext requestContext,
javax.ws.rs.container.ContainerResponseContext responseContext) |
protected List<DKIMSignature> |
getHeaders(javax.ws.rs.core.MultivaluedMap<String,Object> headers) |
protected void |
sign(KeyRepository repository,
javax.ws.rs.core.MultivaluedMap<String,Object> headers,
byte[] body,
DKIMSignature dosetaSignature) |
protected List<DKIMSignature> getHeaders(javax.ws.rs.core.MultivaluedMap<String,Object> headers)
public void filter(javax.ws.rs.client.ClientRequestContext requestContext)
throws IOException
filter in interface javax.ws.rs.client.ClientRequestFilterIOExceptionpublic void filter(javax.ws.rs.container.ContainerRequestContext requestContext,
javax.ws.rs.container.ContainerResponseContext responseContext)
throws IOException
filter in interface javax.ws.rs.container.ContainerResponseFilterIOExceptionpublic void aroundWriteTo(javax.ws.rs.ext.WriterInterceptorContext context)
throws IOException,
javax.ws.rs.WebApplicationException
aroundWriteTo in interface javax.ws.rs.ext.WriterInterceptorIOExceptionjavax.ws.rs.WebApplicationExceptionpublic CompletionStage<Void> asyncAroundWriteTo(AsyncWriterInterceptorContext context)
AsyncWriterInterceptorAsyncMessageBodyWriter.asyncWriteTo(T, java.lang.Class<?>, java.lang.reflect.Type, java.lang.annotation.Annotation[], javax.ws.rs.core.MediaType, javax.ws.rs.core.MultivaluedMap<java.lang.String, java.lang.Object>, org.jboss.resteasy.spi.AsyncOutputStream) method.
The parameters of the wrapped method called are available from context.
Implementations of this method SHOULD explicitly call
AsyncWriterInterceptorContext.asyncProceed() to invoke the next interceptor in the chain,
and ultimately the wrapped AsyncMessageBodyWriter.asyncWriteTo method.asyncAroundWriteTo in interface AsyncWriterInterceptorcontext - invocation context.CompletionStage indicating completionprotected void sign(KeyRepository repository, javax.ws.rs.core.MultivaluedMap<String,Object> headers, byte[] body, DKIMSignature dosetaSignature) throws NoSuchAlgorithmException, InvalidKeyException, SignatureException, UnsupportedEncodingException
Copyright © 2020 JBoss by Red Hat. All rights reserved.