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 interface ChooseCertificateProvider.AliasStore

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

    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      Unit clear(String host, Integer port) Invoked if the certificate for the given host and port is rejected.
      Unit clear() Invoked if the user wishes to forget all certificates from the provider.
      Unit onCertificateRequest(CertificateRequest certificateRequest) Invoked when a client certificate is requested.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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.