2362N/A * Copyright (c) 1997, 2006, Oracle and/or its affiliates. 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 2362N/A * published by the Free Software Foundation. Oracle designates this 0N/A * particular file as subject to the "Classpath" exception as provided 2362N/A * by Oracle 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. 2362N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 2362N/A * or visit www.oracle.com if you need additional information or have any 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 0N/A // Parse the encoded extension 0N/A * Encode the extensions in DER form to the stream. 0N/A * @param out the DerOutputStream to marshal the contents to. 0N/A * @param isExplicit the tag indicating whether this is an entry 0N/A * extension (false) or a CRL extension (true). 0N/A * @exception CRLException on encoding errors. 0N/A * Get the extension with this alias. 0N/A * @param alias the identifier string for the extension to retrieve. 0N/A * Set the extension value with this alias. 0N/A * @param alias the identifier string for the extension to set. 0N/A * @param obj the Object to set the extension identified by the 0N/A * Delete the extension value with this alias. 0N/A * @param alias the identifier string for the extension to delete. 0N/A * Return an enumeration of the extensions. 0N/A * @return an enumeration of the extensions in this CRL. 0N/A * Return a collection view of the extensions. 0N/A * @return a collection view of the extensions in this CRL. 0N/A * Return true if a critical extension is found that is 0N/A * not supported, otherwise return false. 0N/A * Compares this CRLExtensions for equality with the specified 0N/A * object. If the <code>other</code> object is an 0N/A * <code>instanceof</code> <code>CRLExtensions</code>, then 0N/A * all the entries are compared with the entries from this. 0N/A * @param other the object to test for equality with this CRLExtensions. 0N/A * @return true iff all the entries match that of the Other, 0N/A for (
int i =
0; i <
len; i++) {
0N/A * Returns a hashcode value for this CRLExtensions. 0N/A * @return the hashcode value. 0N/A * Returns a string representation of this <tt>CRLExtensions</tt> object 0N/A * in the form of a set of entries, enclosed in braces and separated 0N/A * by the ASCII characters "<tt>, </tt>" (comma and space). 0N/A * <p>Overrides to <tt>toString</tt> method of <tt>Object</tt>. 0N/A * @return a string representation of this CRLExtensions.