public class CRLDistPoint
extends java.lang.Object
implements java.io.Externalizable
CRLDistPointExtension
,
Serialized FormConstructor and Description |
---|
CRLDistPoint()
Creates a new empty instance.
|
CRLDistPoint(CRLDistPointName distPointName)
Create a new
CRLDistPoint with the given
GeneralName . |
CRLDistPoint(GeneralName crlIssuerName)
Create a new
CRLDistPoint with the given general name
(relative to the CRL issuer's name). |
CRLDistPoint(java.io.InputStream is)
Create a new
CRLDistPoint by reading its encoded value
from the given input stream. |
Modifier and Type | Method and Description |
---|---|
void |
addCRLIssuerName(GeneralName crlIssuerName)
Adds a name to this distribution point representing the CRL issuer's
name.
|
void |
clearAllReasonFlags() |
void |
clearReasonFlag(CRLReason reason) |
java.util.Vector<GeneralName> |
getCRLIssuerNames()
Deprecated.
|
java.util.ArrayList<GeneralName> |
getCRLIssuerNamesAsList()
Gets the CRL issuer's name for this distribution point.
|
CRLDistPointName |
getDistPointName()
Gets the distribution point name for this distribution point.
|
boolean |
hasReasonFlag(CRLReason reason)
Returns whether or not the distribution point has revocations for the
given reason code.
|
void |
input(java.io.InputStream is) |
int |
length() |
void |
output(java.io.OutputStream os) |
void |
readExternal(java.io.ObjectInput is) |
void |
setDistPointName(CRLDistPointName distPointName)
Sets the distribution point name for this distribution point.
|
void |
setReasonFlag(CRLReason reason)
Sets whether or not the distribution point has revocations for the given
reason flag.
|
void |
setReasonFlags(CRLReason[] crlReasons) |
void |
writeExternal(java.io.ObjectOutput os) |
public CRLDistPoint()
public CRLDistPoint(CRLDistPointName distPointName)
CRLDistPoint
with the given
GeneralName
.public CRLDistPoint(GeneralName crlIssuerName)
CRLDistPoint
with the given general name
(relative to the CRL issuer's name).public CRLDistPoint(java.io.InputStream is) throws java.io.IOException
CRLDistPoint
by reading its encoded value
from the given input stream.java.io.IOException
public void setDistPointName(CRLDistPointName distPointName)
public CRLDistPointName getDistPointName()
CRLDistPointName
or null
if none
is defined.public boolean hasReasonFlag(CRLReason reason)
If no reason flags have been set, the distribution point supports all
reason codes, and hasReasonFlag
will return
true
for all codes.
reason
- the CRL Reason flag to test, defined as constants in the
CRLReason
class.true
if the given reason code is supported by this
distribution point, otherwise false
.setReasonFlag(oracle.security.crypto.cert.CRLReason)
public void setReasonFlag(CRLReason reason)
reason
- the CRL Reason flag to test, defined as constants in the
CRLReason
class.hasReasonFlag(oracle.security.crypto.cert.CRLReason)
public void setReasonFlags(CRLReason[] crlReasons)
public void clearReasonFlag(CRLReason reason)
public void clearAllReasonFlags()
public void addCRLIssuerName(GeneralName crlIssuerName)
@Deprecated public java.util.Vector<GeneralName> getCRLIssuerNames()
Vector
of GeneralName
relative to
the CRL issuer, or null
if none is defined.public java.util.ArrayList<GeneralName> getCRLIssuerNamesAsList()
ArrayList
of GeneralName
relative
to the CRL issuer, or null
if none is defined.public void input(java.io.InputStream is) throws java.io.IOException
java.io.IOException
public void output(java.io.OutputStream os) throws java.io.IOException
java.io.IOException
public int length()
public void writeExternal(java.io.ObjectOutput os) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
java.io.IOException
public void readExternal(java.io.ObjectInput is) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
java.io.IOException
java.lang.ClassNotFoundException