| | |
| | | lastRefusedChain = chain; |
| | | lastRefusedAuthType = authType; |
| | | lastRefusedCause = Cause.NOT_TRUSTED; |
| | | OpendsCertificationException e = new OpendsCertificationException( |
| | | OpendsCertificateException e = new OpendsCertificateException( |
| | | chain); |
| | | e.initCause(ce); |
| | | throw e; |
| | |
| | | lastRefusedChain = chain; |
| | | lastRefusedAuthType = authType; |
| | | lastRefusedCause = Cause.HOST_NAME_MISMATCH; |
| | | OpendsCertificationException e = new OpendsCertificationException( |
| | | OpendsCertificateException e = new OpendsCertificateException( |
| | | chain); |
| | | e.initCause(ce); |
| | | throw e; |
| | |
| | | lastRefusedChain = chain; |
| | | lastRefusedAuthType = authType; |
| | | lastRefusedCause = Cause.NOT_TRUSTED; |
| | | OpendsCertificationException e = new OpendsCertificationException(chain); |
| | | OpendsCertificateException e = new OpendsCertificateException(chain); |
| | | e.initCause(ce); |
| | | throw e; |
| | | } |
| | |
| | | lastRefusedChain = chain; |
| | | lastRefusedAuthType = authType; |
| | | lastRefusedCause = Cause.HOST_NAME_MISMATCH; |
| | | OpendsCertificationException e = new OpendsCertificationException( |
| | | OpendsCertificateException e = new OpendsCertificateException( |
| | | chain); |
| | | e.initCause(ce); |
| | | throw e; |
| | |
| | | } |
| | | if (!found) |
| | | { |
| | | throw new OpendsCertificationException( |
| | | throw new OpendsCertificateException( |
| | | "Certificate not in list of accepted certificates", chain); |
| | | } |
| | | } |
| | |
| | | |
| | | if (!matches) |
| | | { |
| | | throw new OpendsCertificationException( |
| | | throw new OpendsCertificateException( |
| | | "Hostname mismatch between host name " + host |
| | | + " and subject DN: " + chain[0].getSubjectX500Principal(), |
| | | chain); |