Class JsonWebKeysProvider
- java.lang.Object
-
- org.apache.cxf.rs.security.jose.jaxrs.JsonWebKeysProvider
-
- All Implemented Interfaces:
javax.ws.rs.ext.MessageBodyReader<JsonWebKeys>,javax.ws.rs.ext.MessageBodyWriter<JsonWebKeys>
public class JsonWebKeysProvider extends Object implements javax.ws.rs.ext.MessageBodyReader<JsonWebKeys>, javax.ws.rs.ext.MessageBodyWriter<JsonWebKeys>
-
-
Constructor Summary
Constructors Constructor Description JsonWebKeysProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetSize(JsonWebKeys t, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)booleanisReadable(Class<?> cls, Type type, Annotation[] anns, javax.ws.rs.core.MediaType mt)booleanisWriteable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)JsonWebKeysreadFrom(Class<JsonWebKeys> cls, Type t, Annotation[] anns, javax.ws.rs.core.MediaType mt, javax.ws.rs.core.MultivaluedMap<String,String> headers, InputStream is)voidwriteTo(JsonWebKeys t, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders, OutputStream entityStream)
-
-
-
Method Detail
-
isReadable
public boolean isReadable(Class<?> cls, Type type, Annotation[] anns, javax.ws.rs.core.MediaType mt)
- Specified by:
isReadablein interfacejavax.ws.rs.ext.MessageBodyReader<JsonWebKeys>
-
readFrom
public JsonWebKeys readFrom(Class<JsonWebKeys> cls, Type t, Annotation[] anns, javax.ws.rs.core.MediaType mt, javax.ws.rs.core.MultivaluedMap<String,String> headers, InputStream is) throws IOException, javax.ws.rs.WebApplicationException
- Specified by:
readFromin interfacejavax.ws.rs.ext.MessageBodyReader<JsonWebKeys>- Throws:
IOExceptionjavax.ws.rs.WebApplicationException
-
isWriteable
public boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
- Specified by:
isWriteablein interfacejavax.ws.rs.ext.MessageBodyWriter<JsonWebKeys>
-
getSize
public long getSize(JsonWebKeys t, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
- Specified by:
getSizein interfacejavax.ws.rs.ext.MessageBodyWriter<JsonWebKeys>
-
writeTo
public void writeTo(JsonWebKeys t, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders, OutputStream entityStream) throws IOException, javax.ws.rs.WebApplicationException
- Specified by:
writeToin interfacejavax.ws.rs.ext.MessageBodyWriter<JsonWebKeys>- Throws:
IOExceptionjavax.ws.rs.WebApplicationException
-
-