Class EdsClientSdkFactory.SdkBuilder

    • Method Detail

      • setCallbackLooper

        public EdsClientSdkFactory.SdkBuilder setCallbackLooper​(android.os.Looper looper)
        Set looper used for asynchronous callback operations. Default is main looper
        Parameters:
        looper - looper, or null to use default main looper
        Returns:
        Builder, for chaining
      • setIdmsServerTarget

        public EdsClientSdkFactory.SdkBuilder setIdmsServerTarget​(@NonNull
                                                                  java.lang.String idmsServerUrl)
        Set Custom IDMS server target, used with IDMS attestation. By default production endpoint is used: EdsConstants.IDMS_PRODUCTION_URI Primarily for internal / development use.
        Parameters:
        idmsServerUrl - Fully qualified URL for IDMS server including REST services deployment path
        Returns:
        Builder, for chaining
      • setMecServerTarget

        public EdsClientSdkFactory.SdkBuilder setMecServerTarget​(@NonNull
                                                                 java.lang.String mecServerUrl)
        Set Custom MEC server target used with access token authentication. By default production endpoints is used: EdsConstants.MEC_PRODUCTION_URI Primarily for internal / development use.
        Parameters:
        mecServerUrl - Fully qualified URL for MEC server including REST services deployment path.
        Returns:
        this Builder, for chaining
      • setMecAccessTokenAuthenticator

        public EdsClientSdkFactory.SdkBuilder setMecAccessTokenAuthenticator​(java.lang.String accessToken)
        Set MEC Access Token authenticator. Sets MecAccessTokenAuthenticator with supplied access token.
        Parameters:
        accessToken - MEC access token
        Returns:
        Builder, for chaining.
      • setIdmsAttestAuthenticator

        public EdsClientSdkFactory.SdkBuilder setIdmsAttestAuthenticator​(java.lang.String googleApiKey,
                                                                         java.lang.String mecAppId)
        Set IDMS Attestation authenticator. Sets MecIdmsAttestationAuthenticator with supplied paramters.
        Parameters:
        googleApiKey - Google API Key for SafetyNet device attestation calls.
        mecAppId - MEC AppId
        Returns:
        Builder, for chaining.
      • setAllowLegacyPlayServices

        public EdsClientSdkFactory.SdkBuilder setAllowLegacyPlayServices​(boolean allowLegacyPlayServicesVersions)
        Should SDK allow Google Play services version prior to v13, where app-restricted API keys are not supported? By default PlayServices v13.0+ is required. Google Play Services added support for API restrictions v13 (2018-ish). - If application are using the recommended API restriction for their play services key then Play Services v13+ is required. - If application are not using API restrictions this method allows loosening of play-services check to support legacy/outdated devices - If applications are only using MEC accessToken authentication then play services are not used and this can be ignored. See playstore version guidance within https://developer.android.com/training/safetynet/attestation
        Parameters:
        allowLegacyPlayServicesVersions - whether to allow legacy play services versions
        Returns:
        Builder, for chaining
      • build

        public IEdsClientSdk build()
        Create SDK instance.
        Returns:
        SDK instance.