2362N/A * Copyright (c) 1997, 2004, 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 implements the ASN.1 GeneralName object class. 0N/A * The ASN.1 syntax for this is: 0N/A * GeneralName ::= CHOICE { 0N/A * otherName [0] OtherName, 0N/A * rfc822Name [1] IA5String, 0N/A * dNSName [2] IA5String, 0N/A * x400Address [3] ORAddress, 0N/A * directoryName [4] Name, 0N/A * ediPartyName [5] EDIPartyName, 0N/A * uniformResourceIdentifier [6] IA5String, 0N/A * iPAddress [7] OCTET STRING, 0N/A * registeredID [8] OBJECT IDENTIFIER 0N/A * @author Amit Kapoor 0N/A * @author Hemma Prafullchandra 0N/A // Private data members 0N/A * Default constructor for the class. 0N/A * @param name the selected CHOICE from the list. 0N/A * @throws NullPointerException if name is null 0N/A * Create the object from its DER encoded value. 0N/A * @param encName the DER encoded GeneralName. 0N/A * Create the object from its DER encoded value. 0N/A * @param encName the DER encoded GeneralName. 0N/A * @param nameConstraint true if general name is a name constraint 0N/A // All names except for NAME_DIRECTORY should be encoded with the 0N/A * Return the type of the general name. 0N/A * Return the GeneralNameInterface name. 0N/A //XXXX May want to consider cloning this 0N/A * Return the name as user readable string 0N/A * Compare this GeneralName with another 0N/A * @param other GeneralName to compare to this 0N/A * @returns true if match 0N/A * Returns the hash code for this GeneralName. 0N/A * @return a hash code value. 0N/A * Encode the name to the specified DerOutputStream. 0N/A * @param out the DerOutputStream to encode the the GeneralName to. 0N/A * @exception IOException on encoding errors. 0N/A // implicit, constructed form 0N/A // explicit, constructed form since underlying tag is CHOICE 0N/A // (see X.680 section 30.6, part c) 0N/A // implicit, primitive form