Class ApplicationKeyManager

  • All Implemented Interfaces:
    KeyManager, X509KeyManager

    public class ApplicationKeyManager
    extends Object
    implements X509KeyManager
    This class is in charge of checking whether the certificates that are presented are trusted or not. This implementation tries to check also that the subject DN of the certificate corresponds to the host passed using the setHostName method. The constructor tries to use a default TrustManager from the system and if it cannot be retrieved this class will only accept the certificates explicitly accepted by the user (and specified by calling acceptCertificate). NOTE: this class is not aimed to be used when we have connections in parallel.