Interface ChooseCertificateProvider.AliasStore

  • All Implemented Interfaces:

    
    public interface ChooseCertificateProvider.AliasStore
    
                        

    An interface used for persisting the aliases the user has selected from the android.security.KeyChain.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract String getAlias(String host, Integer port) Gets the stored alias for the given host/port combination.
      abstract Unit saveAlias(String host, Integer port, String alias) Saves the given alias for the given host/port combination.
      abstract Unit clear() Clears all information from the store.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • getAlias

         abstract String getAlias(String host, Integer port)

        Gets the stored alias for the given host/port combination.

        Parameters:
        host - The host of the server requesting the certificate.
        port - The port of the server requesting the certificate.
        Returns:

        The stored alias or null if none is stored for the given host and port.

      • saveAlias

         abstract Unit saveAlias(String host, Integer port, String alias)

        Saves the given alias for the given host/port combination.

        Parameters:
        host - The host of the server requesting the certificate.
        port - The port of the server requesting the certificate.
        alias - The alias of the selected certificate.
      • clear

         abstract Unit clear()

        Clears all information from the store.