src/java.naming/share/classes/sun/security/provider/certpath/ldap/LDAPCertStoreImpl.java
changeset 48583 02cc6b9c271d
parent 48582 02176e56d91c
child 55097 ae908641e726
equal deleted inserted replaced
48582:02176e56d91c 48583:02cc6b9c271d
   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             }