Lines Matching defs:certificate

109             // Working down the chain, for every certificate in the chain,
110 // verify that the subject of the certificate is the issuer of the
111 // next certificate in the chain.
139 // Verify that the the last certificate in the chain was issued
146 System.out.println("Accepting self-signed certificate of remote server: " +
155 throw new CertificateException("root certificate not trusted of " + peerIdentities);
160 // Verify that the first certificate in the chain corresponds to
162 // Check if the certificate uses a wildcard indicating that subdomains are valid
177 // For every certificate in the chain, verify that the certificate
193 * Returns the identity of the remote server as defined in the specified certificate. The
194 * identity is defined in the subjectDN of the certificate and it can also be defined in
199 * @param x509Certificate the certificate the holds the identity of the remote server.
200 * @return the identity of the remote server as defined in the specified certificate.
220 * in the certificate. If none was found then return <tt>null</tt>.
222 * @param certificate the certificate presented by the remote entity.
224 * in the certificate. If none was found then return <tt>null</tt>.
226 private static List<String> getSubjectAlternativeNames(X509Certificate certificate) {
229 Collection<List<?>> altNames = certificate.getSubjectAlternativeNames();
230 // Check that the certificate includes the SubjectAltName extension
261 System.out.println("SubjectAltName of invalid type found: " + certificate);