Class ChooseCertificateProvider
-
- All Implemented Interfaces:
-
com.sap.cloud.mobile.foundation.authentication.CertificateProvider
public final class ChooseCertificateProvider implements CertificateProvider
An implementation of the {@link CertificateProvider} that present the dialog to choose the certificate from device. The User selection can be saved in {@link AliasStore} if provided and the dialog will not show again. {@link AliasStore} only work when application is alive
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceChooseCertificateProvider.AliasStoreAn interface used for persisting the aliases the user has selected from the android.security.KeyChain.
-
Constructor Summary
Constructors Constructor Description ChooseCertificateProvider(ChooseCertificateProvider.AliasStore aliasStore)ChooseCertificateProvider()
-
Method Summary
Modifier and Type Method Description Unitclear(String host, Integer port)Invoked if the certificate for the given host and port is rejected. Unitclear()Invoked if the user wishes to forget all certificates from the provider. UnitonCertificateRequest(CertificateRequest certificateRequest)Invoked when a client certificate is requested. -
-
Constructor Detail
-
ChooseCertificateProvider
ChooseCertificateProvider(ChooseCertificateProvider.AliasStore aliasStore)
-
ChooseCertificateProvider
ChooseCertificateProvider()
-
-
Method Detail
-
clear
Unit clear(String host, Integer port)
Invoked if the certificate for the given host and port is rejected.
-
clear
Unit clear()
Invoked if the user wishes to forget all certificates from the provider.
-
onCertificateRequest
Unit onCertificateRequest(CertificateRequest certificateRequest)
Invoked when a client certificate is requested.
-
-
-
-