| java.lang.Object sun.security.x509.CRLExtensions
CRLExtensions | public class CRLExtensions (Code) | | This class defines the CRL Extensions.
It is used for both CRL Extensions and CRL Entry Extensions,
which are defined are follows:
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
}
author: Hemma Prafullchandra version: 1.12 |
Constructor Summary | |
public | CRLExtensions() Default constructor. | public | CRLExtensions(DerInputStream in) Create the object, decoding the values from the passed DER stream.
Parameters: in - the DerInputStream to read the Extension from, i.e. |
Method Summary | |
public void | decode(InputStream in) Decode the extensions from the InputStream. | public void | delete(String alias) Delete the extension value with this alias. | public void | encode(OutputStream out, boolean isExplicit) Encode the extensions in DER form to the stream. | public boolean | equals(Object other) Compares this CRLExtensions for equality with the specified
object. | public Extension | get(String alias) Get the extension with this alias. | public Collection | getAllExtensions() Return a collection view of the extensions. | public Enumeration | getElements() Return an enumeration of the extensions. | public boolean | hasUnsupportedCriticalExtension() Return true if a critical extension is found that is
not supported, otherwise return false. | public int | hashCode() Returns a hashcode value for this CRLExtensions. | public void | set(String alias, Object obj) Set the extension value with this alias. | public 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). |
CRLExtensions | public CRLExtensions()(Code) | | Default constructor.
|
CRLExtensions | public CRLExtensions(DerInputStream in) throws CRLException(Code) | | Create the object, decoding the values from the passed DER stream.
Parameters: in - the DerInputStream to read the Extension from, i.e. thesequence of extensions. exception: CRLException - on decoding errors. |
decode | public void decode(InputStream in) throws CRLException(Code) | | Decode the extensions from the InputStream.
Parameters: in - the InputStream to unmarshal the contents from. exception: CRLException - on decoding or validity errors. |
delete | public void delete(String alias)(Code) | | Delete the extension value with this alias.
Parameters: alias - the identifier string for the extension to delete. |
encode | public void encode(OutputStream out, boolean isExplicit) throws CRLException(Code) | | Encode the extensions in DER form to the stream.
Parameters: out - the DerOutputStream to marshal the contents to. Parameters: isExplicit - the tag indicating whether this is an entryextension (false) or a CRL extension (true). exception: CRLException - on encoding errors. |
equals | public boolean equals(Object other)(Code) | | Compares this CRLExtensions for equality with the specified
object. If the other object is an
instanceof CRLExtensions , then
all the entries are compared with the entries from this.
Parameters: other - the object to test for equality with this CRLExtensions. true iff all the entries match that of the Other,false otherwise. |
get | public Extension get(String alias)(Code) | | Get the extension with this alias.
Parameters: alias - the identifier string for the extension to retrieve. |
getAllExtensions | public Collection getAllExtensions()(Code) | | Return a collection view of the extensions.
a collection view of the extensions in this CRL. |
getElements | public Enumeration getElements()(Code) | | Return an enumeration of the extensions.
an enumeration of the extensions in this CRL. |
hasUnsupportedCriticalExtension | public boolean hasUnsupportedCriticalExtension()(Code) | | Return true if a critical extension is found that is
not supported, otherwise return false.
|
hashCode | public int hashCode()(Code) | | Returns a hashcode value for this CRLExtensions.
the hashcode value. |
set | public void set(String alias, Object obj)(Code) | | Set the extension value with this alias.
Parameters: alias - the identifier string for the extension to set. Parameters: obj - the Object to set the extension identified by thealias. |
toString | public String toString()(Code) | | 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).
Overrides to toString method of Object.
a string representation of this CRLExtensions. |
|
|