Package org.ldaptive.ssl
Interface CertificateHostnameVerifier
-
- All Known Implementing Classes:
AllowAnyHostnameVerifier,DefaultHostnameVerifier
public interface CertificateHostnameVerifierInterface for verifying a hostname matching a certificate.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanverify(String hostname, X509Certificate cert)Verify the supplied hostname matches the supplied certificate.
-
-
-
Method Detail
-
verify
boolean verify(String hostname, X509Certificate cert)
Verify the supplied hostname matches the supplied certificate.- Parameters:
hostname- to verifycert- to verify hostname against- Returns:
- whether hostname is valid for the supplied certificate
-
-