Class KeyAccessor

    • Constructor Detail

      • KeyAccessor

        public KeyAccessor()
    • Method Detail

      • getClientSslKeypair

        public X500PrivateCredential getClientSslKeypair​(String alias)
        Gets the client key pair used for SSL mutual authentication, given the alias
        Parameters:
        alias - the alias of the key and cert
        Returns:
        an X500PrivateCredential with the private key and X509 cert
      • getDsigKeypair

        public X500PrivateCredential getDsigKeypair​(String alias)
        Gets the key pair used for digital signing, given the alias
        Parameters:
        alias - the alias of the key and cert
        Returns:
        an X500PrivateCredential with the private key and X509 cert
      • getEncryptionCertificate

        public X509Certificate getEncryptionCertificate​(String alias)
        Gets the certificate given the alias
        Parameters:
        alias - the alias of the cert
        Returns:
        an X509Certificate