01: package org.bouncycastle.cms;
02:
03: import java.io.IOException;
04: import java.io.OutputStream;
05:
06: /**
07: * a holding class for a byte array of data to be processed.
08: */
09: public class CMSProcessableByteArray implements CMSProcessable {
10: private byte[] bytes;
11:
12: public CMSProcessableByteArray(byte[] bytes) {
13: this .bytes = bytes;
14: }
15:
16: public void write(OutputStream zOut) throws IOException,
17: CMSException {
18: zOut.write(bytes);
19: }
20:
21: public Object getContent() {
22: return bytes.clone();
23: }
24: }
|