jdk/src/java.base/share/classes/sun/security/x509/RDN.java
changeset 31426 9cd672654f97
parent 30649 e7cc8f48f616
child 35283 c5082624b79f
equal deleted inserted replaced
31425:276b895af81c 31426:9cd672654f97
     1 /*
     1 /*
     2  * Copyright (c) 2002, 2014, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2002, 2015, 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
   319      * @param oid ObjectIdentifier of attribute to be found
   319      * @param oid ObjectIdentifier of attribute to be found
   320      * @return DerValue of attribute value; null if attribute does not exist
   320      * @return DerValue of attribute value; null if attribute does not exist
   321      */
   321      */
   322     DerValue findAttribute(ObjectIdentifier oid) {
   322     DerValue findAttribute(ObjectIdentifier oid) {
   323         for (int i = 0; i < assertion.length; i++) {
   323         for (int i = 0; i < assertion.length; i++) {
   324             if (assertion[i].oid.equals((Object)oid)) {
   324             if (assertion[i].oid.equals(oid)) {
   325                 return assertion[i].value;
   325                 return assertion[i].value;
   326             }
   326             }
   327         }
   327         }
   328         return null;
   328         return null;
   329     }
   329     }