public class HttpsCertVerifier extends java.lang.Object implements CertVerifier
Constructor and Description |
---|
HttpsCertVerifier(java.security.cert.X509Certificate[] chain,
java.lang.String authType,
boolean isTrusted,
boolean hostMatched,
java.lang.String hostName) |
Modifier and Type | Method and Description |
---|---|
boolean |
getAlreadyTrustPublisher() |
java.security.cert.CertPath |
getCertPath(java.security.cert.CertPath certPath) |
java.util.List<java.lang.String> |
getDetails(java.security.cert.CertPath certPath) |
java.security.cert.Certificate |
getPublisher(java.security.cert.CertPath certPath) |
java.security.cert.Certificate |
getRoot(java.security.cert.CertPath certPath) |
boolean |
getRootInCacerts() |
boolean |
hasSigningIssues(java.security.cert.CertPath certPath) |
public HttpsCertVerifier(java.security.cert.X509Certificate[] chain, java.lang.String authType, boolean isTrusted, boolean hostMatched, java.lang.String hostName)
public boolean getAlreadyTrustPublisher()
getAlreadyTrustPublisher
in interface CertVerifier
public java.security.cert.CertPath getCertPath(java.security.cert.CertPath certPath)
getCertPath
in interface CertVerifier
certPath
- to be readpublic java.util.List<java.lang.String> getDetails(java.security.cert.CertPath certPath)
getDetails
in interface CertVerifier
certPath
- certificatepublic java.security.cert.Certificate getPublisher(java.security.cert.CertPath certPath)
getPublisher
in interface CertVerifier
certPath
- to be read for publisherpublic java.security.cert.Certificate getRoot(java.security.cert.CertPath certPath)
getRoot
in interface CertVerifier
certPath
- certificatepublic boolean getRootInCacerts()
getRootInCacerts
in interface CertVerifier
public boolean hasSigningIssues(java.security.cert.CertPath certPath)
hasSigningIssues
in interface CertVerifier
certPath
- to be validated