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.
-
-
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. -
-
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.
-
-
-
-