public class TaggedRequest extends java.lang.Object implements ASN1Value
TaggedRequest ::= CHOICE { tcr [0] TaggedCertificationRequest, crm [1] CertReqMsg orm [2] SEQUENCE { bodyPartID BodyPartID, requestMessageType OBJECT IDENTIFIER, requestMessageValue ANY DEFINED BY requestMessageType } // added for rfc 5272; defined in OtherReqMsg }
Modifier and Type | Class and Description |
---|---|
static class |
TaggedRequest.Template
A Template for decoding a ProofOfPossession.
|
static class |
TaggedRequest.Type
The type of TaggedRequest.
|
Modifier and Type | Field and Description |
---|---|
static TaggedRequest.Type |
CRMF |
static TaggedRequest.Type |
OTHER |
static TaggedRequest.Type |
PKCS10 |
Constructor and Description |
---|
TaggedRequest() |
TaggedRequest(TaggedRequest.Type type,
TaggedCertificationRequest tcr,
CertReqMsg crm)
Constructs a TaggedRequest from its components.
|
TaggedRequest(TaggedRequest.Type type,
TaggedCertificationRequest tcr,
CertReqMsg crm,
OtherReqMsg orm)
Constructs a TaggedRequest from its components.
|
Modifier and Type | Method and Description |
---|---|
void |
encode(java.io.OutputStream ostream)
Write this value's DER encoding to an output stream using
its own base tag.
|
void |
encode(Tag implicitTag,
java.io.OutputStream ostream)
Write this value's DER encoding to an output stream using
an implicit tag.
|
CertReqMsg |
getCrm()
If type == CRMF, returns the crm field.
|
OtherReqMsg |
getOrm()
If type == OTHER, returns the orm field.
|
Tag |
getTag()
Returns the base tag for this type, not counting any tags
that may be imposed on it by its context.
|
TaggedCertificationRequest |
getTcr()
If type == PKCS10, returns the tcr field.
|
static TaggedRequest.Template |
getTemplate() |
TaggedRequest.Type |
getType()
Returns the type of TaggedRequest:
PKCS10
CRMF
OTHER
|
public static TaggedRequest.Type PKCS10
public static TaggedRequest.Type CRMF
public static TaggedRequest.Type OTHER
public TaggedRequest()
public TaggedRequest(TaggedRequest.Type type, TaggedCertificationRequest tcr, CertReqMsg crm)
type
- The type of the request.tcr
- Tagged pkcs10 request.crm
- CRMF request.public TaggedRequest(TaggedRequest.Type type, TaggedCertificationRequest tcr, CertReqMsg crm, OtherReqMsg orm)
type
- The type of the request.tcr
- Tagged pkcs10 request.crm
- CRMF request.orm
- OTHER request.public TaggedRequest.Type getType()
PKCS10
CRMF
OTHER
public TaggedCertificationRequest getTcr()
public CertReqMsg getCrm()
public OtherReqMsg getOrm()
public Tag getTag()
ASN1Value
public void encode(java.io.OutputStream ostream) throws java.io.IOException
ASN1Value
public void encode(Tag implicitTag, java.io.OutputStream ostream) throws java.io.IOException
ASN1Value
public static TaggedRequest.Template getTemplate()