Interface ChooseCertificateProvider.AliasStore
-
- All Implemented Interfaces:
public interface ChooseCertificateProvider.AliasStoreAn interface used for persisting the aliases the user has selected from the android.security.KeyChain.
-
-
Method Summary
Modifier and Type Method Description abstract StringgetAlias(String host, Integer port)Gets the stored alias for the given host/port combination. abstract UnitsaveAlias(String host, Integer port, String alias)Saves the given alias for the given host/port combination. abstract Unitclear()Clears all information from the store. -
-
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.
-
-
-
-