CRLExtensions.java revision 0
0N/A * Copyright 1997-2006 Sun Microsystems, Inc. All Rights Reserved. 0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 0N/A * This code is free software; you can redistribute it and/or modify it 0N/A * under the terms of the GNU General Public License version 2 only, as 0N/A * published by the Free Software Foundation. Sun designates this 0N/A * particular file as subject to the "Classpath" exception as provided 0N/A * by Sun in the LICENSE file that accompanied this code. 0N/A * This code is distributed in the hope that it will be useful, but WITHOUT 0N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 0N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 0N/A * version 2 for more details (a copy is included in the LICENSE file that 0N/A * accompanied this code). 0N/A * You should have received a copy of the GNU General Public License version 0N/A * 2 along with this work; if not, write to the Free Software Foundation, 0N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 0N/A * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, 0N/A * CA 95054 USA or visit www.sun.com if you need additional information or 0N/A * have any questions. 0N/A * This class defines the CRL Extensions. 0N/A * It is used for both CRL Extensions and CRL Entry Extensions, 0N/A * which are defined are follows: 0N/A * TBSCertList ::= SEQUENCE { 0N/A * version Version OPTIONAL, -- if present, must be v2 0N/A * signature AlgorithmIdentifier, 0N/A * nextUpdate Time OPTIONAL, 0N/A * revokedCertificates SEQUENCE OF SEQUENCE { 0N/A * userCertificate CertificateSerialNumber, 0N/A * revocationDate Time, 0N/A * crlEntryExtensions Extensions OPTIONAL -- if present, must be v2 0N/A * crlExtensions [0] EXPLICIT Extensions OPTIONAL -- if present, must be v2 0N/A * @author Hemma Prafullchandra 0N/A * Default constructor. 0N/A * Create the object, decoding the values from the passed DER stream. 0N/A * @param in the DerInputStream to read the Extension from, i.e. the 0N/A * sequence of extensions. 0N/A * @exception CRLException on decoding errors. 0N/A // check for context specific byte 0; skip it // Parse the encoded extension * Encode the extensions in DER form to the stream. * @param out the DerOutputStream to marshal the contents to. * @param isExplicit the tag indicating whether this is an entry * extension (false) or a CRL extension (true). * @exception CRLException on encoding errors. * Get the extension with this alias. * @param alias the identifier string for the extension to retrieve. * Set the extension value with this alias. * @param alias the identifier string for the extension to set. * @param obj the Object to set the extension identified by the * Delete the extension value with this alias. * @param alias the identifier string for the extension to delete. * Return an enumeration of the extensions. * @return an enumeration of the extensions in this CRL. * Return a collection view of the extensions. * @return a collection view of the extensions in this CRL. * Return true if a critical extension is found that is * not supported, otherwise return false. * Compares this CRLExtensions for equality with the specified * object. If the <code>other</code> object is an * <code>instanceof</code> <code>CRLExtensions</code>, then * all the entries are compared with the entries from this. * @param other the object to test for equality with this CRLExtensions. * @return true iff all the entries match that of the Other, for (
int i =
0; i <
len; i++) {
* Returns a hashcode value for this CRLExtensions. * @return the hashcode value. * Returns a string representation of this <tt>CRLExtensions</tt> object * in the form of a set of entries, enclosed in braces and separated * by the ASCII characters "<tt>, </tt>" (comma and space). * <p>Overrides to <tt>toString</tt> method of <tt>Object</tt>. * @return a string representation of this CRLExtensions.