src/java.naming/share/classes/sun/security/provider/certpath/ldap/LDAPCertStoreImpl.java
equal
deleted
inserted
replaced
230 private String checkName(String name) throws CertStoreException { |
230 private String checkName(String name) throws CertStoreException { |
231 if (name == null) { |
231 if (name == null) { |
232 throw new CertStoreException("Name absent"); |
232 throw new CertStoreException("Name absent"); |
233 } |
233 } |
234 try { |
234 try { |
235 if (new CompositeName(name).size() != 1) { |
235 if (new CompositeName(name).size() > 1) { |
236 throw new CertStoreException("Invalid name: " + name); |
236 throw new CertStoreException("Invalid name: " + name); |
237 } |
237 } |
238 } catch (InvalidNameException ine) { |
238 } catch (InvalidNameException ine) { |
239 throw new CertStoreException("Invalid name: " + name, ine); |
239 throw new CertStoreException("Invalid name: " + name, ine); |
240 } |
240 } |