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(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(java.io.OutputStream 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.
|
Extension |
get(java.lang.String alias)
Get the extension with this alias.
|
java.util.Collection<Extension> |
getAllExtensions()
Return a collection view of the extensions.
|
java.util.Enumeration<Extension> |
getElements()
Return an enumeration of the extensions.
|
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 |
set(java.lang.String alias,
java.lang.Object obj)
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(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(java.io.OutputStream out,
boolean isExplicit)
throws java.security.cert.CRLException
out - the DerOutputStream to marshal the contents to.isExplicit - the tag indicating whether this is an entry
extension (false) or a CRL extension (true).java.security.cert.CRLException - on encoding errors.public Extension get(java.lang.String alias)
alias - the identifier string for the extension to retrieve.public void set(java.lang.String alias,
java.lang.Object obj)
alias - the identifier string for the extension to set.obj - the Object to set 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.Enumeration<Extension> getElements()
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()
Overrides to toString method of Object.
toString in class java.lang.ObjectCopyright © 2020. All Rights Reserved.