Class JweWriterInterceptor

java.lang.Object
org.apache.cxf.rs.security.jose.jaxrs.JweWriterInterceptor
All Implemented Interfaces:
jakarta.ws.rs.ext.WriterInterceptor

@Priority(1001) public class JweWriterInterceptor extends Object implements jakarta.ws.rs.ext.WriterInterceptor
  • Field Details

    • LOG

      protected static final Logger LOG
  • Constructor Details

    • JweWriterInterceptor

      public JweWriterInterceptor()
  • Method Details

    • aroundWriteTo

      public void aroundWriteTo(jakarta.ws.rs.ext.WriterInterceptorContext ctx) throws IOException, jakarta.ws.rs.WebApplicationException
      Specified by:
      aroundWriteTo in interface jakarta.ws.rs.ext.WriterInterceptor
      Throws:
      IOException
      jakarta.ws.rs.WebApplicationException
    • getInitializedEncryptionProvider

      protected org.apache.cxf.rs.security.jose.jwe.JweEncryptionProvider getInitializedEncryptionProvider(org.apache.cxf.rs.security.jose.jwe.JweHeaders headers)
    • setUseJweOutputStream

      public void setUseJweOutputStream(boolean useJweOutputStream)
    • setEncryptionProvider

      public void setEncryptionProvider(org.apache.cxf.rs.security.jose.jwe.JweEncryptionProvider encryptionProvider)
    • protectHttpHeadersIfNeeded

      protected void protectHttpHeadersIfNeeded(jakarta.ws.rs.ext.WriterInterceptorContext ctx, org.apache.cxf.rs.security.jose.jwe.JweHeaders jweHeaders)
    • setProtectHttpHeaders

      public void setProtectHttpHeaders(boolean protectHttpHeaders)
    • setProtectedHttpHeaders

      public void setProtectedHttpHeaders(Set<String> protectedHttpHeaders)