jdk/src/share/classes/sun/security/krb5/PrincipalName.java
changeset 7977 f47f211cd627
parent 7183 d8ccc1c73358
child 9035 1255eb81cc2f
equal deleted inserted replaced
7976:f273c0d04215 7977:f47f211cd627
   242         if ((der.getTag() & 0x01F) == 0x01) {
   242         if ((der.getTag() & 0x01F) == 0x01) {
   243             DerValue subDer = der.getData().getDerValue();
   243             DerValue subDer = der.getData().getDerValue();
   244             if (subDer.getTag() != DerValue.tag_SequenceOf) {
   244             if (subDer.getTag() != DerValue.tag_SequenceOf) {
   245                 throw new Asn1Exception(Krb5.ASN1_BAD_ID);
   245                 throw new Asn1Exception(Krb5.ASN1_BAD_ID);
   246             }
   246             }
   247             Vector<String> v = new Vector<String> ();
   247             Vector<String> v = new Vector<>();
   248             DerValue subSubDer;
   248             DerValue subSubDer;
   249             while(subDer.getData().available() > 0) {
   249             while(subDer.getData().available() > 0) {
   250                 subSubDer = subDer.getData().getDerValue();
   250                 subSubDer = subDer.getData().getDerValue();
   251                 v.addElement(new KerberosString(subSubDer).toString());
   251                 v.addElement(new KerberosString(subSubDer).toString());
   252             }
   252             }
   297     // string is fixed
   297     // string is fixed
   298     // XXX Error checkin consistent with MIT krb5_parse_name
   298     // XXX Error checkin consistent with MIT krb5_parse_name
   299     // Code repetition, realm parsed again by class Realm
   299     // Code repetition, realm parsed again by class Realm
   300     protected static String[] parseName(String name) {
   300     protected static String[] parseName(String name) {
   301 
   301 
   302         Vector<String> tempStrings = new Vector<String> ();
   302         Vector<String> tempStrings = new Vector<>();
   303         String temp = name;
   303         String temp = name;
   304         int i = 0;
   304         int i = 0;
   305         int componentStart = 0;
   305         int componentStart = 0;
   306         String component;
   306         String component;
   307 
   307