equal
deleted
inserted
replaced
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 } |