Class HttpsCertVerifier
java.lang.Object
net.sourceforge.jnlp.security.HttpsCertVerifier
- All Implemented Interfaces:
CertVerifier
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionHttpsCertVerifier(X509Certificate[] chain, boolean isTrusted, boolean hostMatched, String hostName) -
Method Summary
Modifier and TypeMethodDescriptionprivate voidaddToDetails(String detail) booleangetDetails(CertPath certPath) (package private) static Stringprivate StringgetPublisher(CertPath certPath) boolean
-
Field Details
-
LOG
-
chain
-
hostName
-
isTrusted
private final boolean isTrusted -
hostMatched
private final boolean hostMatched -
details
-
-
Constructor Details
-
HttpsCertVerifier
HttpsCertVerifier(X509Certificate[] chain, boolean isTrusted, boolean hostMatched, String hostName)
-
-
Method Details
-
getAlreadyTrustPublisher
public boolean getAlreadyTrustPublisher()- Specified by:
getAlreadyTrustPublisherin interfaceCertVerifier- Returns:
- if the publisher is already trusted
-
getCertPath
- Specified by:
getCertPathin interfaceCertVerifier- Returns:
- a valid certificate path to this certificate being verified
-
getDetails
- Specified by:
getDetailsin interfaceCertVerifier- Parameters:
certPath- certificate- Returns:
- the details regarding issue with this certificate
-
getMostSpecificCommonName
- Returns:
- the last (most specific) CN of the subject, or null
- Throws:
InvalidNameException
-
getNamesForCert
-
addToDetails
-
getPublisher
- Specified by:
getPublisherin interfaceCertVerifier- Parameters:
certPath- to be read for publisher- Returns:
- the application's publisher's certificate.
-
getRoot
- Specified by:
getRootin interfaceCertVerifier- Parameters:
certPath- certificate- Returns:
- the application's root's certificate. This may return the same certificate as getPublisher(CertPath certPath) in the event that the application is self signed.
-
getRootInCaCerts
public boolean getRootInCaCerts()- Specified by:
getRootInCaCertsin interfaceCertVerifier- Returns:
- if the root is in CA certs
-