Package jade.mtp.http.https
Class NoAuthentication
- java.lang.Object
-
- jade.mtp.http.https.NoAuthentication
-
- All Implemented Interfaces:
HTTPSTrustManager,TrustManager,X509TrustManager
public class NoAuthentication extends Object implements HTTPSTrustManager
This class represents a Dummy trust manager used when we are not interested in authentication. No checks are performed over certificates sent during the protocol handshaking. Several attacks can be performed if we use this trust manager, be very careful in using it.- Author:
- Joan Ametller Esquerra
-
-
Constructor Summary
Constructors Constructor Description NoAuthentication()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckClientTrusted(X509Certificate[] arg0, String arg1)voidcheckServerTrusted(X509Certificate[] arg0, String arg1)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[] arg0, String arg1) throws CertificateException
- Specified by:
checkClientTrustedin interfaceX509TrustManager- Throws:
CertificateException
-
checkServerTrusted
public void checkServerTrusted(X509Certificate[] arg0, String arg1) 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
-
-