blob: 35cdd325e31ec6f31cc1111498e0391a4722f3c3 (
plain)
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
|
package org.spongycastle.dvcs;
import org.spongycastle.asn1.dvcs.Data;
/**
* Data piece of DVCRequest object (DVCS Data structure).
* Its contents depend on the service type.
* Its subclasses define the service-specific interface.
* <p/>
* The concrete objects of DVCRequestData are created by buildDVCRequestData static method.
*/
public abstract class DVCSRequestData
{
/**
* The underlying data object is accessible by subclasses.
*/
protected Data data;
/**
* The constructor is accessible by subclasses.
*
* @param data
*/
protected DVCSRequestData(Data data)
{
this.data = data;
}
/**
* Convert to ASN.1 structure (Data).
*
* @return
*/
public Data toASN1Structure()
{
return data;
}
}
|