|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.ibm.security12.sun.security.x509.CRLExtensions
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
}
| Constructor Summary | |
CRLExtensions()
Default constructor. |
|
CRLExtensions(DerInputStream in)
Create the object, decoding the values from the passed DER stream. |
|
| Method Summary | |
void |
decode(InputStream in)
Decode the extensions from the InputStream. |
void |
delete(String alias)
Delete the extension value with this alias. |
void |
encode(OutputStream out,
boolean isExplicit)
Encode the extensions in DER form to the stream. |
boolean |
equals(Object other)
Compares this CRLExtensions for equality with the specified object. |
Extension |
get(String alias)
Get the extension with this alias. |
Collection |
getAllExtensions()
Return a collection view of the extensions. |
Enumeration |
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(String alias,
Object obj)
Set the extension value with this alias. |
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). |
| Methods inherited from class java.lang.Object |
clone,
finalize,
getClass,
notify,
notifyAll,
wait,
wait,
wait |
| Constructor Detail |
public CRLExtensions()
public CRLExtensions(DerInputStream in)
throws CRLException
in - the DerInputStream to read the Extension from, i.e. the
sequence of extensions.| Method Detail |
public void decode(InputStream in)
throws CRLException
in - the InputStream to unmarshal the contents from.
public void encode(OutputStream out,
boolean isExplicit)
throws 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).public Extension get(String alias)
alias - the identifier string for the extension to retrieve.
public void set(String alias,
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(String alias)
alias - the identifier string for the extension to delete.public Enumeration getElements()
public Collection getAllExtensions()
public boolean hasUnsupportedCriticalExtension()
public boolean equals(Object other)
other object is an
instanceof CRLExtensions, then
all the entries are compared with the entries from this.other - the object to test for equality with this CRLExtensions.public int hashCode()
public String toString()
Overrides to toString method of Object.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||