Class DCError


  • public final class DCError
    extends java.lang.Object
    DeviceCheck error codes. API-Since: 11.0
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static long FeatureUnsupported
      DeviceCheck is unavailable on this device.
      static long InvalidInput
      An error code that indicates when your app provides data that isn’t formatted correctly.
      static long InvalidKey
      An error caused by a failed attempt to use the App Attest key.
      static long ServerUnavailable
      An error that indicates a failed attempt to contact the App Attest service during an attestation.
      static long UnknownSystemFailure
      A failure has occurred, such as the failure to generate a token.
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • UnknownSystemFailure

        public static final long UnknownSystemFailure
        A failure has occurred, such as the failure to generate a token. API-Since: 11.0
        See Also:
        Constant Field Values
      • FeatureUnsupported

        public static final long FeatureUnsupported
        DeviceCheck is unavailable on this device. API-Since: 11.0
        See Also:
        Constant Field Values
      • InvalidInput

        public static final long InvalidInput
        An error code that indicates when your app provides data that isn’t formatted correctly. API-Since: 11.0
        See Also:
        Constant Field Values
      • InvalidKey

        public static final long InvalidKey
        An error caused by a failed attempt to use the App Attest key. You receive this error if something goes wrong with generating, retrieving, or using an App Attest cryptographic key, when: - You call ``DeviceCheck/DCAppAttestService/attestKey:clientDataHash:completionHandler:`` for a key that’s already been attested. - You call ``DeviceCheck/DCAppAttestService/generateAssertion:clientDataHash:completionHandler:`` with an unattested key. - The App Attest service rejects the key. API-Since: 11.0
        See Also:
        Constant Field Values
      • ServerUnavailable

        public static final long ServerUnavailable
        An error that indicates a failed attempt to contact the App Attest service during an attestation. You receive this error when you call ``DeviceCheck/DCAppAttestService/attestKey:clientDataHash:completionHandler:`` and the framework isn’t able to complete the attestation. If you receive this error, try the attestation again later using the same key and the same value for the `clientDataHash` parameter. Retrying with the same inputs helps to preserve the risk metric for a given device. API-Since: 11.0
        See Also:
        Constant Field Values