Class CredentialX509KeyManager

  • All Implemented Interfaces:
    KeyManager, X509KeyManager

    public class CredentialX509KeyManager
    extends X509ExtendedKeyManager
    Simple KeyManager implementation which always returns the only key and certificate which is available in the configured X509Credential object. Note that this class could return null in case when server provides a list of trusted issuers and our credential is not issued by any of them. However such behavior results in quite cryptic errors from the server side ("null cert chain"), so we try to authenticate with what we have always.
    Author:
    K. Benedyczak