summaryrefslogtreecommitdiffstats
path: root/src/org/uic/header/SignedDataType.java
blob: 2cd2acd4e8c81ab6101cc66e470ed2f6c60ae6d4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
package org.uic.header;

import net.gcdc.asn1.datatypes.Asn1Optional;
import net.gcdc.asn1.datatypes.Sequence;
import net.gcdc.asn1.datatypesimpl.OctetString;

/**
 * The Class SignedDataType.
 */
@Sequence
public class SignedDataType {
	
	/** The data. */
	public DataBlockType dataBlock;
	
	/** The signature. */
	@Asn1Optional public OctetString signature;

	/**
	 * Gets the data.
	 *
	 * @return the data
	 */
	public DataBlockType getDataBlock() {
		return dataBlock;
	}

	/**
	 * Sets the data.
	 *
	 * @param data the new data
	 */
	public void setDataBlock(DataBlockType dataBlock) {
		this.dataBlock = dataBlock;
	}

	/**
	 * Gets the signature.
	 *
	 * @return the signature
	 */
	public OctetString getSignature() {
		return signature;
	}

	/**
	 * Sets the signature.
	 *
	 * @param signature the signature
	 */
	public void setSignature(OctetString signature) {
		this.signature = signature;
	}
	
	
	/**
	 * Sets the signature.
	 *
	 * @param signature the signature
	 */
	public void setSignature(byte[] signature) {
		this.signature = new OctetString(signature);
	}

	
	
}