Package jade.mtp.http.https
Class StrongAuthentication
- java.lang.Object
-
- jade.mtp.http.https.StrongAuthentication
-
- All Implemented Interfaces:
HTTPSTrustManager,TrustManager,X509TrustManager
public class StrongAuthentication extends Object implements HTTPSTrustManager
This Trust manager authenticates certificates issued by official Top level Certification Authorities. The certificate list containing Certification Authorities certificates is located at JAVA_HOME/jre/lib/security/cacerts. This file is a java KeyStore file. Certificate list can be listed using the following command: keytool -list -keystore JAVA_HOME/jre/lib/security/cacerts where JAVA_HOME is the path where java SDK is installed.- Author:
- Joan Ametller Esquerra
-
-
Constructor Summary
Constructors Constructor Description StrongAuthentication()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckClientTrusted(X509Certificate[] cert, String authType)voidcheckServerTrusted(X509Certificate[] cert, String authType)X509Certificate[]getAcceptedIssuers()voidinit(Profile profile)This method is used to pass profile data to trust Managers.
-
-
-
Method Detail
-
getAcceptedIssuers
public X509Certificate[] getAcceptedIssuers()
- Specified by:
getAcceptedIssuersin interfaceX509TrustManager
-
checkClientTrusted
public void checkClientTrusted(X509Certificate[] cert, String authType) throws CertificateException
- Specified by:
checkClientTrustedin interfaceX509TrustManager- Throws:
CertificateException
-
checkServerTrusted
public void checkServerTrusted(X509Certificate[] cert, String authType) throws CertificateException
- Specified by:
checkServerTrustedin interfaceX509TrustManager- Throws:
CertificateException
-
init
public void init(Profile profile) throws Exception
Description copied from interface:HTTPSTrustManagerThis method is used to pass profile data to trust Managers. Specific parameters can be retrieved from profile instance.- Specified by:
initin interfaceHTTPSTrustManager- Throws:
Exception
-
-