public class RevRequest
extends java.lang.Object
implements oracle.security.crypto.asn1.ASN1Object
Constructor and Description |
---|
RevRequest()
Creates an empty
RevRequest instance. |
RevRequest(java.io.InputStream is)
Create a new
RevRequest by reading from the specified input stream. |
RevRequest(X500Name issuerName, java.math.BigInteger serialNo, CRLReason reason)
Creates a
RevRequest instance with the specified values. |
RevRequest(X500Name issuerName, java.math.BigInteger serialNo, CRLReason reason, java.util.Date invalidityDate, byte[] passphrase, java.lang.String comment)
Creates a
RevRequest instance with the specified values. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o)
Compare this
RevRequest to the specified object. |
java.lang.String |
getComment()
Returns the comment associated with this request..
|
java.util.Date |
getInvalidityDate()
Returns the time associated with the revocation.
|
X500Name |
getIssuerName()
Returns the certificate issuer's name.
|
byte[] |
getPassphrase()
Returns the passphrase.
|
CRLReason |
getReason()
Returns the reasons flags associated with this message..
|
java.math.BigInteger |
getSerialNo()
Returns the certificate serial number.
|
void |
input(java.io.InputStream is)
Create a new
RevRequest by reading from the specified input stream. |
int |
length()
Returns the length of this object's encoding.
|
void |
output(java.io.OutputStream os)
Outputs the
RevRequest to the specified output stream. |
void |
setComment(java.lang.String comment)
Sets the comment associated with this request..
|
void |
setInvalidityDate(java.util.Date invalidityDate)
Sets the time associated with the revocation.
|
void |
setIssuerName(X500Name issuerName)
Sets the certificate issuer's name.
|
void |
setPassphrase(byte[] passphrase)
Sets the passphrase.
|
void |
setReason(CRLReason reason)
Sets the reasons flags associated with this message.
|
void |
setSerialNo(java.math.BigInteger serialNo)
Sets the certificate serial number.
|
public RevRequest()
RevRequest
instance.public RevRequest(X500Name issuerName, java.math.BigInteger serialNo, CRLReason reason)
RevRequest
instance with the specified values.issuerName
- The name of the certificate issuer.serialNo
- The Serial Number of the certificate.reason
- The revocation reason.public RevRequest(X500Name issuerName, java.math.BigInteger serialNo, CRLReason reason, java.util.Date invalidityDate, byte[] passphrase, java.lang.String comment)
RevRequest
instance with the specified values.issuerName
- The name of the certificate issuer.serialNo
- The Serial Number of the certificate.reason
- The revocation reason.invalidityDate
- The revocation date.passphrase
- The sharet secret to authenticate this request.comment
- A comment string.public RevRequest(java.io.InputStream is) throws java.io.IOException
RevRequest
by reading from the specified input stream.is
- The input stream containing the encoded RevRequest
.java.io.IOException
- The input encoding is incorrect or an I/O error occurs.public void setIssuerName(X500Name issuerName)
issuerName
- The GeneralName
of the certificate issuer.public X500Name getIssuerName()
GeneralName
of the certificate issuer.public void setSerialNo(java.math.BigInteger serialNo)
serialNo
- The serial number of the certificate.public java.math.BigInteger getSerialNo()
public void setReason(CRLReason reason)
reason
- The reasons flags.public CRLReason getReason()
public void setInvalidityDate(java.util.Date invalidityDate)
invalidityDate
- The revocation date.public java.util.Date getInvalidityDate()
public void setPassphrase(byte[] passphrase)
passphrase
- The shared secret bytes.public byte[] getPassphrase()
public void setComment(java.lang.String comment)
comment
- The comment string.public java.lang.String getComment()
public void input(java.io.InputStream is) throws java.io.IOException
RevRequest
by reading from the specified input stream.input
in interface oracle.security.crypto.util.Streamable
is
- The input stream containing the encoded RevRequest
.java.io.IOException
- The input encoding is incorrect or an I/O error occurs.public void output(java.io.OutputStream os) throws java.io.IOException
RevRequest
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 int length()
length
in interface oracle.security.crypto.util.Streamable
public boolean equals(java.lang.Object o)
RevRequest
to the specified object. Returns true
if and only if the argument is not null
and is an RevRequest
object which has the same DER encoding as this object.equals
in class java.lang.Object