@Provider @Produces(value="application/pkcs7-signature") public class PKCS7SignatureWriter extends Object implements javax.ws.rs.ext.MessageBodyWriter<SignedOutput>
Modifier and Type | Field and Description |
---|---|
protected javax.ws.rs.ext.Providers |
providers |
Constructor and Description |
---|
PKCS7SignatureWriter() |
Modifier and Type | Method and Description |
---|---|
long |
getSize(SignedOutput smimeOutput,
Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType) |
boolean |
isWriteable(Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType) |
static byte[] |
sign(javax.ws.rs.ext.Providers providers,
SignedOutput out) |
void |
writeTo(SignedOutput out,
Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.MultivaluedMap<String,Object> headers,
OutputStream os) |
public boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
isWriteable
in interface javax.ws.rs.ext.MessageBodyWriter<SignedOutput>
public long getSize(SignedOutput smimeOutput, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
getSize
in interface javax.ws.rs.ext.MessageBodyWriter<SignedOutput>
public void writeTo(SignedOutput out, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String,Object> headers, OutputStream os) throws IOException, javax.ws.rs.WebApplicationException
writeTo
in interface javax.ws.rs.ext.MessageBodyWriter<SignedOutput>
IOException
javax.ws.rs.WebApplicationException
public static byte[] sign(javax.ws.rs.ext.Providers providers, SignedOutput out) throws IOException, NoSuchAlgorithmException, NoSuchProviderException, org.bouncycastle.cms.CMSException, org.bouncycastle.operator.OperatorCreationException, CertificateEncodingException
IOException
NoSuchAlgorithmException
NoSuchProviderException
org.bouncycastle.cms.CMSException
org.bouncycastle.operator.OperatorCreationException
CertificateEncodingException
Copyright © 2015 JBoss by Red Hat. All rights reserved.