org.apache.cxf.rs.security.jose.jaxrs
Class JwsJwtMessageBodyWriter

java.lang.Object
  extended by org.apache.cxf.rs.security.jose.jaxrs.AbstractJwsWriterProvider
      extended by org.apache.cxf.rs.security.jose.jaxrs.JwsJwtMessageBodyWriter
All Implemented Interfaces:
javax.ws.rs.ext.MessageBodyWriter<JwtToken>

public class JwsJwtMessageBodyWriter
extends AbstractJwsWriterProvider
implements javax.ws.rs.ext.MessageBodyWriter<JwtToken>


Constructor Summary
JwsJwtMessageBodyWriter()
           
 
Method Summary
 long getSize(JwtToken token, Class<?> cls, Type type, Annotation[] anns, javax.ws.rs.core.MediaType mt)
           
 boolean isWriteable(Class<?> cls, Type type, Annotation[] anns, javax.ws.rs.core.MediaType mt)
           
 void writeTo(JwtToken token, Class<?> cls, Type type, Annotation[] anns, javax.ws.rs.core.MediaType mt, javax.ws.rs.core.MultivaluedMap<String,Object> headers, OutputStream os)
           
 
Methods inherited from class org.apache.cxf.rs.security.jose.jaxrs.AbstractJwsWriterProvider
getInitializedSigProvider, setSignatureProvider, writeJws
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JwsJwtMessageBodyWriter

public JwsJwtMessageBodyWriter()
Method Detail

getSize

public long getSize(JwtToken token,
                    Class<?> cls,
                    Type type,
                    Annotation[] anns,
                    javax.ws.rs.core.MediaType mt)
Specified by:
getSize in interface javax.ws.rs.ext.MessageBodyWriter<JwtToken>

isWriteable

public boolean isWriteable(Class<?> cls,
                           Type type,
                           Annotation[] anns,
                           javax.ws.rs.core.MediaType mt)
Specified by:
isWriteable in interface javax.ws.rs.ext.MessageBodyWriter<JwtToken>

writeTo

public void writeTo(JwtToken token,
                    Class<?> cls,
                    Type type,
                    Annotation[] anns,
                    javax.ws.rs.core.MediaType mt,
                    javax.ws.rs.core.MultivaluedMap<String,Object> headers,
                    OutputStream os)
             throws IOException,
                    javax.ws.rs.WebApplicationException
Specified by:
writeTo in interface javax.ws.rs.ext.MessageBodyWriter<JwtToken>
Throws:
IOException
javax.ws.rs.WebApplicationException


Apache CXF