jdk/src/java.base/share/classes/sun/security/x509/RDN.java
changeset 26967 c182469301ee
parent 25859 3317bb8137f4
child 30033 b9c86c17164a
equal deleted inserted replaced
26966:580934a3052b 26967:c182469301ee
     1 /*
     1 /*
     2  * Copyright (c) 2002, 2011, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2002, 2014, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
   339     }
   339     }
   340 
   340 
   341     /*
   341     /*
   342      * Returns a printable form of this RDN, using RFC 1779 style catenation
   342      * Returns a printable form of this RDN, using RFC 1779 style catenation
   343      * of attribute/value assertions, and emitting attribute type keywords
   343      * of attribute/value assertions, and emitting attribute type keywords
   344      * from RFCs 1779, 2253, and 3280.
   344      * from RFCs 1779, 2253, and 5280.
   345      */
   345      */
   346     public String toString() {
   346     public String toString() {
   347         if (assertion.length == 1) {
   347         if (assertion.length == 1) {
   348             return assertion[0].toString();
   348             return assertion[0].toString();
   349         }
   349         }