Package jade.mtp.http.https
Class FriendListAuthentication
- java.lang.Object
-
- jade.mtp.http.https.FriendListAuthentication
-
- All Implemented Interfaces:
HTTPSTrustManager,TrustManager,X509TrustManager
public class FriendListAuthentication extends Object implements HTTPSTrustManager
This class implements a concrete behaviour for HTTPS Trust decisions. If we configure the platform to use this TrustManager, we must also specify two configuration properties: jade_mtp_http_https_firendListFile: This property must indicate the location of a java KeyStore in the disc. jade_mtp_http_https_friendListFilePass Password for this KeyStore. The KeyStore must contain a list of Trusted Certificates. When a new HTTPS connection is stablished, trust decisions will be made in terms of the certificates inside the KeyStore. If the Certificate sent by the remote peer is inside of the KeyStore or signed by one of the issuers of the inside the KeyStore, the connection will be stablished. Otherwise the connection will not be possible.- Author:
- Joan Ametller Esquerra
-
-
Constructor Summary
Constructors Constructor Description FriendListAuthentication()
-
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
-
-