public class CRLExtensions
extends java.lang.Object
TBSCertList ::= SEQUENCE {
version Version OPTIONAL, -- if present, must be v2
signature AlgorithmIdentifier,
issuer Name,
thisUpdate Time,
nextUpdate Time OPTIONAL,
revokedCertificates SEQUENCE OF SEQUENCE {
userCertificate CertificateSerialNumber,
revocationDate Time,
crlEntryExtensions Extensions OPTIONAL -- if present, must be v2
} OPTIONAL,
crlExtensions [0] EXPLICIT Extensions OPTIONAL -- if present, must be v2
}
| Constructor and Description |
|---|
CRLExtensions()
Default constructor.
|
CRLExtensions(com.tencent.kona.sun.security.util.DerInputStream in)
Create the object, decoding the values from the passed DER stream.
|
| Modifier and Type | Method and Description |
|---|---|
void |
delete(java.lang.String alias)
Delete the extension value with this alias.
|
void |
encode(com.tencent.kona.sun.security.util.DerOutputStream out,
boolean isExplicit)
Encode the extensions in DER form to the stream.
|
boolean |
equals(java.lang.Object other)
Compares this CRLExtensions for equality with the specified
object.
|
java.util.Collection<Extension> |
getAllExtensions()
Return a collection view of the extensions.
|
Extension |
getExtension(java.lang.String alias)
Get the extension with this alias.
|
int |
hashCode()
Returns a hashcode value for this CRLExtensions.
|
boolean |
hasUnsupportedCriticalExtension()
Return true if a critical extension is found that is
not supported, otherwise return false.
|
void |
setExtension(java.lang.String alias,
Extension ext)
Set the extension value with this alias.
|
java.lang.String |
toString()
Returns a string representation of this
CRLExtensions object
in the form of a set of entries, enclosed in braces and separated
by the ASCII characters ", " (comma and space). |
public CRLExtensions()
public CRLExtensions(com.tencent.kona.sun.security.util.DerInputStream in)
throws java.security.cert.CRLException
in - the DerInputStream to read the Extension from, i.e. the
sequence of extensions.java.security.cert.CRLException - on decoding errors.public void encode(com.tencent.kona.sun.security.util.DerOutputStream out,
boolean isExplicit)
out - the DerOutputStream to marshal the contents to.isExplicit - the tag indicating whether this is an entry
extension (false) or a CRL extension (true).public Extension getExtension(java.lang.String alias)
alias - the identifier string for the extension to retrieve.public void setExtension(java.lang.String alias,
Extension ext)
alias - the identifier string for the extension to set.ext - the extension identified by the alias.public void delete(java.lang.String alias)
alias - the identifier string for the extension to delete.public java.util.Collection<Extension> getAllExtensions()
public boolean hasUnsupportedCriticalExtension()
public boolean equals(java.lang.Object other)
other object is an
instanceof CRLExtensions, then
all the entries are compared with the entries from this.equals in class java.lang.Objectother - the object to test for equality with this CRLExtensions.public int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
CRLExtensions object
in the form of a set of entries, enclosed in braces and separated
by the ASCII characters ", " (comma and space).
Overrides to toString method of Object.
toString in class java.lang.Object