Class JSSTrustManager
java.lang.Object
org.mozilla.jss.provider.javax.crypto.JSSTrustManager
- All Implemented Interfaces:
TrustManager,X509TrustManager
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckCert(X509Certificate cert, X509Certificate[] caCerts, String keyUsage) voidcheckCertChain(X509Certificate[] certChain, String keyUsage) voidcheckClientTrusted(X509Certificate[] certChain, String authType) voidcheckServerTrusted(X509Certificate[] certChain, String authType) voidconfigureAllowMissingExtendedKeyUsage(boolean allow)
-
Field Details
-
logger
public static final org.slf4j.Logger logger -
SERVER_AUTH_OID
- See Also:
-
CLIENT_AUTH_OID
- See Also:
-
-
Constructor Details
-
JSSTrustManager
public JSSTrustManager()
-
-
Method Details
-
configureAllowMissingExtendedKeyUsage
public void configureAllowMissingExtendedKeyUsage(boolean allow) -
checkCertChain
- Throws:
Exception
-
checkCert
public void checkCert(X509Certificate cert, X509Certificate[] caCerts, String keyUsage) throws Exception - Throws:
Exception
-
checkClientTrusted
public void checkClientTrusted(X509Certificate[] certChain, String authType) throws CertificateException - Specified by:
checkClientTrustedin interfaceX509TrustManager- Throws:
CertificateException
-
checkServerTrusted
public void checkServerTrusted(X509Certificate[] certChain, String authType) throws CertificateException - Specified by:
checkServerTrustedin interfaceX509TrustManager- Throws:
CertificateException
-
getAcceptedIssuers
- Specified by:
getAcceptedIssuersin interfaceX509TrustManager
-