jdk/src/java.base/share/classes/java/security/cert/X509CertSelector.java
changeset 31426 9cd672654f97
parent 30033 b9c86c17164a
child 32649 2ee9017c7597
equal deleted inserted replaced
31425:276b895af81c 31426:9cd672654f97
     1 /*
     1 /*
     2  * Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2000, 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
  2236             if (debug != null) {
  2236             if (debug != null) {
  2237                 debug.println("X509CertSelector.match: subjectPublicKeyAlgID = "
  2237                 debug.println("X509CertSelector.match: subjectPublicKeyAlgID = "
  2238                     + subjectPublicKeyAlgID + ", xcert subjectPublicKeyAlgID = "
  2238                     + subjectPublicKeyAlgID + ", xcert subjectPublicKeyAlgID = "
  2239                     + algID.getOID());
  2239                     + algID.getOID());
  2240             }
  2240             }
  2241             if (!subjectPublicKeyAlgID.equals((Object)algID.getOID())) {
  2241             if (!subjectPublicKeyAlgID.equals(algID.getOID())) {
  2242                 if (debug != null) {
  2242                 if (debug != null) {
  2243                     debug.println("X509CertSelector.match: "
  2243                     debug.println("X509CertSelector.match: "
  2244                         + "subject public key alg IDs don't match");
  2244                         + "subject public key alg IDs don't match");
  2245                 }
  2245                 }
  2246                 return false;
  2246                 return false;