Class CMSProcessableInputStream
java.lang.Object
se.idsec.signservice.security.sign.pdf.utils.CMSProcessableInputStream
- All Implemented Interfaces:
org.bouncycastle.cms.CMSProcessable
,org.bouncycastle.cms.CMSTypedData
Wraps an
InputStream
into a CMSProcessable object for Bouncy Castle. It's an alternative to the
CMSProcessableByteArray.- Author:
- Martin Lindström (martin@idsec.se), Stefan Santesson (stefan@idsec.se)
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor that defaults to use the 1.2.840.113549.1.7.1 OID (PKCS#7 data).CMSProcessableInputStream
(org.bouncycastle.asn1.ASN1ObjectIdentifier type, InputStream is) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionorg.bouncycastle.asn1.ASN1ObjectIdentifier
void
write
(OutputStream out)
-
Constructor Details
-
CMSProcessableInputStream
Constructor that defaults to use the 1.2.840.113549.1.7.1 OID (PKCS#7 data).- Parameters:
is
- the input stream
-
CMSProcessableInputStream
Constructor.- Parameters:
type
- the OID of the objectis
- the input stream
-
-
Method Details
-
getContent
- Specified by:
getContent
in interfaceorg.bouncycastle.cms.CMSProcessable
-
write
- Specified by:
write
in interfaceorg.bouncycastle.cms.CMSProcessable
- Throws:
IOException
-
getContentType
public org.bouncycastle.asn1.ASN1ObjectIdentifier getContentType()- Specified by:
getContentType
in interfaceorg.bouncycastle.cms.CMSTypedData
-