public class IssuingDistPointExtension extends X509Extension
CRLReason
,
CRLDistPointName
,
Serialized Formid_netscape_ce, id_netscape_ce_type, id_set_ce, id_set_ce_type, isDecoded
Constructor and Description |
---|
IssuingDistPointExtension()
Create a new extension with the appropriate OID type.
|
IssuingDistPointExtension(boolean critical)
Creates a new extension.
|
IssuingDistPointExtension(java.io.InputStream is) |
Modifier and Type | Method and Description |
---|---|
void |
clearAllReasonFlags() |
void |
clearReasonFlag(CRLReason reason) |
CRLDistPointName |
getDistPointName()
Gets the distribution point name for this extension.
|
boolean |
hasReasonFlag(CRLReason reason)
Returns whether or not the distribution point has revocations
for the given reason code.
|
boolean |
isIndirectCRL()
Returns
true if the CRL containing this
extension is an indirect CRL. |
boolean |
onlyContainsCACerts() |
boolean |
onlyContainsUserCerts() |
void |
setDistPointName(CRLDistPointName distPointName)
Sets the distribution point name for this extension.
|
void |
setIsIndirectCRL(boolean value) |
void |
setOnlyContainsCACerts(boolean value) |
void |
setOnlyContainsUserCerts(boolean value) |
void |
setReasonFlag(CRLReason reason)
Sets whether or not the distribution point has revocations
for the given reason flag.
|
void |
setReasonFlags(CRLReason[] crlReasons) |
java.lang.String |
toString()
Returns a string representation of this object.
|
getCritical, getType, getValue, input, inputInstance, isRecognized, length, output, readExternal, setCritical, setValue, writeExternal
public IssuingDistPointExtension()
Note: An object created using this constructor may not
be in a valid state. This constructor is intended primarily
for use in conjunction with the X509Extension.input(java.io.InputStream)
method.
public IssuingDistPointExtension(boolean critical)
critical
- true
if this extension is critical,
false
otherwise.public IssuingDistPointExtension(java.io.InputStream is) throws java.io.IOException
java.io.IOException
public CRLDistPointName getDistPointName()
public void setDistPointName(CRLDistPointName distPointName)
public boolean onlyContainsUserCerts()
public void setOnlyContainsUserCerts(boolean value)
public boolean onlyContainsCACerts()
public void setOnlyContainsCACerts(boolean value)
public boolean isIndirectCRL()
true
if the CRL containing this
extension is an indirect CRL.
Note: If isIndirectCRL
returns true
,
then CRLCertificateIssuerExtension
s may be present
in the CRL entries.
public void setIsIndirectCRL(boolean value)
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 java.lang.String toString()
X509Extension
toString
in class X509Extension