public class TaggedRequest
extends java.lang.Object
implements oracle.security.crypto.asn1.ASN1Object
Constructor and Description |
---|
TaggedRequest()
Creates an empty
TaggedRequest instance. |
TaggedRequest(CertReqMsg certReqMsg)
Creates an empty
TaggedRequest instance with the specified value. |
TaggedRequest(java.io.InputStream is)
Create a new
TaggedRequest by reading from the specified input stream. |
TaggedRequest(TaggedCertificationRequest taggedCertReq)
Creates an empty
TaggedRequest instance with the specified value. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o)
Compare this
TaggedRequest to the specified object. |
CertReqMsg |
getCertReqMsg()
Returns the Tagged Certification Request value.
|
TaggedCertificationRequest |
getTaggedCertificationRequest()
Returns the Tagged Certification Request value.
|
void |
input(java.io.InputStream is)
Create a new
TaggedRequest by reading from the specified input stream. |
boolean |
isCertReqMsg()
Indicates if the request is of type CertReqMsg.
|
boolean |
isTaggedCertificationRequest()
Indicates if the request is of type TaggedCertificationRequest.
|
int |
length()
Returns the length of this object's encoding.
|
void |
output(java.io.OutputStream os)
Outputs the
TaggedRequest to the specified output stream. |
void |
setCertReqMsg(CertReqMsg certReqMsg)
Sets the Certification Request value.
|
void |
setTaggedCertificationRequest(TaggedCertificationRequest taggedCertReq)
Sets the Tagged Certification Request value.
|
public TaggedRequest()
TaggedRequest
instance.public TaggedRequest(TaggedCertificationRequest taggedCertReq)
TaggedRequest
instance with the specified value.taggedCertReq
- The certification request message.public TaggedRequest(CertReqMsg certReqMsg)
TaggedRequest
instance with the specified value.certReqMsg
- The certification request message.public TaggedRequest(java.io.InputStream is) throws java.io.IOException
TaggedRequest
by reading from the specified input stream.is
- The input stream containing the encoded TaggedRequest
.java.io.IOException
public void setTaggedCertificationRequest(TaggedCertificationRequest taggedCertReq)
taggedCertReq
- The certification request.public TaggedCertificationRequest getTaggedCertificationRequest()
public void setCertReqMsg(CertReqMsg certReqMsg)
certReqMsg
- The certification request.public CertReqMsg getCertReqMsg()
public boolean isTaggedCertificationRequest()
true
if a TaggedCertificationRequest is present.public boolean isCertReqMsg()
true
if a CertReqMsg is present.public void output(java.io.OutputStream os) throws java.io.IOException
TaggedRequest
to the specified output stream.output
in interface oracle.security.crypto.util.Streamable
os
- The output stream.java.io.IOException
- An I/O error occurs.public void input(java.io.InputStream is) throws java.io.IOException
TaggedRequest
by reading from the specified input stream.input
in interface oracle.security.crypto.util.Streamable
is
- The input stream containing the encoded TaggedRequest
.java.io.IOException
- The input encoding is incorrect or an I/O error occurs.public int length()
length
in interface oracle.security.crypto.util.Streamable
public boolean equals(java.lang.Object o)
TaggedRequest
to the specified object. Returns true
if and only if the argument is not null
and is an TaggedRequest
object which has the same DER encoding as this object.equals
in class java.lang.Object