jdk/src/share/classes/sun/security/x509/AuthorityInfoAccessExtension.java
author duke
Sat, 01 Dec 2007 00:00:00 +0000
changeset 2 90ce3da70b43
child 2067 6f9db5f305cd
permissions -rw-r--r--
Initial load
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
/*
90ce3da70b43 Initial load
duke
parents:
diff changeset
     2
 * Copyright 2004-2006 Sun Microsystems, Inc.  All Rights Reserved.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     4
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
90ce3da70b43 Initial load
duke
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
90ce3da70b43 Initial load
duke
parents:
diff changeset
     7
 * published by the Free Software Foundation.  Sun designates this
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
 * particular file as subject to the "Classpath" exception as provided
90ce3da70b43 Initial load
duke
parents:
diff changeset
     9
 * by Sun in the LICENSE file that accompanied this code.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    10
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    11
 * This code is distributed in the hope that it will be useful, but WITHOUT
90ce3da70b43 Initial load
duke
parents:
diff changeset
    12
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    13
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
90ce3da70b43 Initial load
duke
parents:
diff changeset
    14
 * version 2 for more details (a copy is included in the LICENSE file that
90ce3da70b43 Initial load
duke
parents:
diff changeset
    15
 * accompanied this code).
90ce3da70b43 Initial load
duke
parents:
diff changeset
    16
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    17
 * You should have received a copy of the GNU General Public License version
90ce3da70b43 Initial load
duke
parents:
diff changeset
    18
 * 2 along with this work; if not, write to the Free Software Foundation,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    19
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    20
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    21
 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    22
 * CA 95054 USA or visit www.sun.com if you need additional information or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    23
 * have any questions.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    24
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    25
90ce3da70b43 Initial load
duke
parents:
diff changeset
    26
package sun.security.x509;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    27
90ce3da70b43 Initial load
duke
parents:
diff changeset
    28
import java.io.IOException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    29
import java.io.OutputStream;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
import java.util.*;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
import sun.security.util.DerOutputStream;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
import sun.security.util.DerValue;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
/**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
 * The Authority Information Access Extension (OID = 1.3.6.1.5.5.7.1.1).
90ce3da70b43 Initial load
duke
parents:
diff changeset
    38
 * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
 * The AIA extension identifies how to access CA information and services
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
 * for the certificate in which it appears. It enables CAs to issue their
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
 * certificates pre-configured with the URLs appropriate for contacting
90ce3da70b43 Initial load
duke
parents:
diff changeset
    42
 * services relevant to those certificates. For example, a CA may issue a
90ce3da70b43 Initial load
duke
parents:
diff changeset
    43
 * certificate that identifies the specific OCSP Responder to use when
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
 * performing on-line validation of that certificate.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    45
 * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
 * This extension is defined in
90ce3da70b43 Initial load
duke
parents:
diff changeset
    47
 * <a href="http://www.ietf.org/rfc/rfc3280.txt">Internet X.509 PKI Certificate and Certificate Revocation List (CRL) Profile</a>. The profile permits
90ce3da70b43 Initial load
duke
parents:
diff changeset
    48
 * the extension to be included in end-entity or CA certificates,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    49
 * and it must be marked as non-critical. Its ASN.1 definition is as follows:
90ce3da70b43 Initial load
duke
parents:
diff changeset
    50
 * <pre>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    51
 *   id-pe-authorityInfoAccess OBJECT IDENTIFIER ::= { id-pe 1 }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    52
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    53
 *   AuthorityInfoAccessSyntax  ::=
90ce3da70b43 Initial load
duke
parents:
diff changeset
    54
 *         SEQUENCE SIZE (1..MAX) OF AccessDescription
90ce3da70b43 Initial load
duke
parents:
diff changeset
    55
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    56
 *   AccessDescription  ::=  SEQUENCE {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    57
 *         accessMethod          OBJECT IDENTIFIER,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    58
 *         accessLocation        GeneralName  }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    59
 * </pre>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    60
 * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    61
 * @see Extension
90ce3da70b43 Initial load
duke
parents:
diff changeset
    62
 * @see CertAttrSet
90ce3da70b43 Initial load
duke
parents:
diff changeset
    63
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    64
90ce3da70b43 Initial load
duke
parents:
diff changeset
    65
public class AuthorityInfoAccessExtension extends Extension
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
        implements CertAttrSet<String> {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    67
90ce3da70b43 Initial load
duke
parents:
diff changeset
    68
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    69
     * Identifier for this attribute, to be used with the
90ce3da70b43 Initial load
duke
parents:
diff changeset
    70
     * get, set, delete methods of Certificate, x509 type.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    71
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    72
    public static final String IDENT =
90ce3da70b43 Initial load
duke
parents:
diff changeset
    73
                                "x509.info.extensions.AuthorityInfoAccess";
90ce3da70b43 Initial load
duke
parents:
diff changeset
    74
90ce3da70b43 Initial load
duke
parents:
diff changeset
    75
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    76
     * Attribute name.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    77
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    78
    public static final String NAME = "AuthorityInfoAccess";
90ce3da70b43 Initial load
duke
parents:
diff changeset
    79
    public static final String DESCRIPTIONS = "descriptions";
90ce3da70b43 Initial load
duke
parents:
diff changeset
    80
90ce3da70b43 Initial load
duke
parents:
diff changeset
    81
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    82
     * The List of AccessDescription objects.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    83
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    84
    private List<AccessDescription> accessDescriptions;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    85
90ce3da70b43 Initial load
duke
parents:
diff changeset
    86
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    87
     * Create an AuthorityInfoAccessExtension from a List of
90ce3da70b43 Initial load
duke
parents:
diff changeset
    88
     * AccessDescription; the criticality is set to false.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    89
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    90
     * @param accessDescriptions the List of AccessDescription
90ce3da70b43 Initial load
duke
parents:
diff changeset
    91
     * @throws IOException on error
90ce3da70b43 Initial load
duke
parents:
diff changeset
    92
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    93
    public AuthorityInfoAccessExtension(
90ce3da70b43 Initial load
duke
parents:
diff changeset
    94
            List<AccessDescription> accessDescriptions) throws IOException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    95
        this.extensionId = PKIXExtensions.AuthInfoAccess_Id;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    96
        this.critical = false;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    97
        this.accessDescriptions = accessDescriptions;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    98
        encodeThis();
90ce3da70b43 Initial load
duke
parents:
diff changeset
    99
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   100
90ce3da70b43 Initial load
duke
parents:
diff changeset
   101
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   102
     * Create the extension from the passed DER encoded value of the same.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   103
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   104
     * @param critical true if the extension is to be treated as critical.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   105
     * @param value Array of DER encoded bytes of the actual value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   106
     * @exception IOException on error.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   107
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   108
    public AuthorityInfoAccessExtension(Boolean critical, Object value)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   109
            throws IOException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   110
        this.extensionId = PKIXExtensions.AuthInfoAccess_Id;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   111
        this.critical = critical.booleanValue();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   112
90ce3da70b43 Initial load
duke
parents:
diff changeset
   113
        if (!(value instanceof byte[])) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   114
            throw new IOException("Illegal argument type");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   115
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   116
90ce3da70b43 Initial load
duke
parents:
diff changeset
   117
        extensionValue = (byte[])value;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   118
        DerValue val = new DerValue(extensionValue);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   119
        if (val.tag != DerValue.tag_Sequence) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   120
            throw new IOException("Invalid encoding for " +
90ce3da70b43 Initial load
duke
parents:
diff changeset
   121
                                  "AuthorityInfoAccessExtension.");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   122
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   123
        accessDescriptions = new ArrayList<AccessDescription>();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   124
        while (val.data.available() != 0) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   125
            DerValue seq = val.data.getDerValue();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   126
            AccessDescription accessDescription = new AccessDescription(seq);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   127
            accessDescriptions.add(accessDescription);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   128
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   129
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   130
90ce3da70b43 Initial load
duke
parents:
diff changeset
   131
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   132
     * Return the list of AccessDescription objects.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   133
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   134
    public List<AccessDescription> getAccessDescriptions() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   135
        return accessDescriptions;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   136
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   137
90ce3da70b43 Initial load
duke
parents:
diff changeset
   138
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   139
     * Return the name of this attribute.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   140
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   141
    public String getName() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   142
        return NAME;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   143
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   144
90ce3da70b43 Initial load
duke
parents:
diff changeset
   145
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   146
     * Write the extension to the DerOutputStream.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   147
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   148
     * @param out the DerOutputStream to write the extension to.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   149
     * @exception IOException on encoding errors.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   150
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   151
    public void encode(OutputStream out) throws IOException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   152
        DerOutputStream tmp = new DerOutputStream();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   153
        if (this.extensionValue == null) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   154
            this.extensionId = PKIXExtensions.AuthInfoAccess_Id;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   155
            this.critical = false;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   156
            encodeThis();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   157
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   158
        super.encode(tmp);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   159
        out.write(tmp.toByteArray());
90ce3da70b43 Initial load
duke
parents:
diff changeset
   160
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   161
90ce3da70b43 Initial load
duke
parents:
diff changeset
   162
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   163
     * Set the attribute value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   164
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   165
    public void set(String name, Object obj) throws IOException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   166
        if (name.equalsIgnoreCase(DESCRIPTIONS)) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   167
            if (!(obj instanceof List)) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   168
                throw new IOException("Attribute value should be of type List.");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   169
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   170
            accessDescriptions = (List<AccessDescription>)obj;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   171
        } else {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   172
            throw new IOException("Attribute name [" + name +
90ce3da70b43 Initial load
duke
parents:
diff changeset
   173
                                "] not recognized by " +
90ce3da70b43 Initial load
duke
parents:
diff changeset
   174
                                "CertAttrSet:AuthorityInfoAccessExtension.");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   175
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   176
        encodeThis();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   177
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   178
90ce3da70b43 Initial load
duke
parents:
diff changeset
   179
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   180
     * Get the attribute value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   181
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   182
    public Object get(String name) throws IOException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   183
        if (name.equalsIgnoreCase(DESCRIPTIONS)) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   184
            return accessDescriptions;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   185
        } else {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   186
            throw new IOException("Attribute name [" + name +
90ce3da70b43 Initial load
duke
parents:
diff changeset
   187
                                "] not recognized by " +
90ce3da70b43 Initial load
duke
parents:
diff changeset
   188
                                "CertAttrSet:AuthorityInfoAccessExtension.");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   189
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   190
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   191
90ce3da70b43 Initial load
duke
parents:
diff changeset
   192
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   193
     * Delete the attribute value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   194
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   195
    public void delete(String name) throws IOException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   196
        if (name.equalsIgnoreCase(DESCRIPTIONS)) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   197
            accessDescriptions = new ArrayList<AccessDescription>();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   198
        } else {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   199
            throw new IOException("Attribute name [" + name +
90ce3da70b43 Initial load
duke
parents:
diff changeset
   200
                                "] not recognized by " +
90ce3da70b43 Initial load
duke
parents:
diff changeset
   201
                                "CertAttrSet:AuthorityInfoAccessExtension.");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   202
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   203
        encodeThis();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   204
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   205
90ce3da70b43 Initial load
duke
parents:
diff changeset
   206
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   207
     * Return an enumeration of names of attributes existing within this
90ce3da70b43 Initial load
duke
parents:
diff changeset
   208
     * attribute.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   209
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   210
    public Enumeration<String> getElements() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   211
        AttributeNameEnumeration elements = new AttributeNameEnumeration();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   212
        elements.addElement(DESCRIPTIONS);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   213
        return elements.elements();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   214
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   215
90ce3da70b43 Initial load
duke
parents:
diff changeset
   216
     // Encode this extension value
90ce3da70b43 Initial load
duke
parents:
diff changeset
   217
    private void encodeThis() throws IOException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   218
        if (accessDescriptions.isEmpty()) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   219
            this.extensionValue = null;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   220
        } else {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   221
            DerOutputStream ads = new DerOutputStream();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   222
            for (AccessDescription accessDescription : accessDescriptions) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   223
                accessDescription.encode(ads);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   224
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   225
            DerOutputStream seq = new DerOutputStream();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   226
            seq.write(DerValue.tag_Sequence, ads);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   227
            this.extensionValue = seq.toByteArray();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   228
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   229
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   230
90ce3da70b43 Initial load
duke
parents:
diff changeset
   231
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   232
     * Return the extension as user readable string.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   233
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   234
    public String toString() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   235
        return super.toString() + "AuthorityInfoAccess [\n  "
90ce3da70b43 Initial load
duke
parents:
diff changeset
   236
               + accessDescriptions + "\n]\n";
90ce3da70b43 Initial load
duke
parents:
diff changeset
   237
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   238
90ce3da70b43 Initial load
duke
parents:
diff changeset
   239
}