Enum TokenProperties.InvalidReason

    • Enum Constant Detail

      • INVALID_REASON_UNSPECIFIED

        public static final TokenProperties.InvalidReason INVALID_REASON_UNSPECIFIED
         Default unspecified type.
         
        INVALID_REASON_UNSPECIFIED = 0;
      • UNKNOWN_INVALID_REASON

        public static final TokenProperties.InvalidReason UNKNOWN_INVALID_REASON
         If the failure reason was not accounted for.
         
        UNKNOWN_INVALID_REASON = 1;
      • SITE_MISMATCH

        @Deprecated
        public static final TokenProperties.InvalidReason SITE_MISMATCH
        Deprecated.
         The user verification token did not match the provided site key.
         This may be a configuration error (for example, development keys used in
         production) or end users trying to use verification tokens from other
         sites.
         
        SITE_MISMATCH = 5 [deprecated = true];
      • MISSING

        public static final TokenProperties.InvalidReason MISSING
         The user verification token was not present.  It is a required input.
         
        MISSING = 6;
      • BROWSER_ERROR

        public static final TokenProperties.InvalidReason BROWSER_ERROR
         A retriable error (such as network failure) occurred on the browser.
         Could easily be simulated by an attacker.
         
        BROWSER_ERROR = 7;
    • Field Detail

      • INVALID_REASON_UNSPECIFIED_VALUE

        public static final int INVALID_REASON_UNSPECIFIED_VALUE
         Default unspecified type.
         
        INVALID_REASON_UNSPECIFIED = 0;
        See Also:
        Constant Field Values
      • UNKNOWN_INVALID_REASON_VALUE

        public static final int UNKNOWN_INVALID_REASON_VALUE
         If the failure reason was not accounted for.
         
        UNKNOWN_INVALID_REASON = 1;
        See Also:
        Constant Field Values
      • MALFORMED_VALUE

        public static final int MALFORMED_VALUE
         The provided user verification token was malformed.
         
        MALFORMED = 2;
        See Also:
        Constant Field Values
      • EXPIRED_VALUE

        public static final int EXPIRED_VALUE
         The user verification token had expired.
         
        EXPIRED = 3;
        See Also:
        Constant Field Values
      • DUPE_VALUE

        public static final int DUPE_VALUE
         The user verification had already been seen.
         
        DUPE = 4;
        See Also:
        Constant Field Values
      • SITE_MISMATCH_VALUE

        @Deprecated
        public static final int SITE_MISMATCH_VALUE
        Deprecated.
         The user verification token did not match the provided site key.
         This may be a configuration error (for example, development keys used in
         production) or end users trying to use verification tokens from other
         sites.
         
        SITE_MISMATCH = 5 [deprecated = true];
        See Also:
        Constant Field Values
      • MISSING_VALUE

        public static final int MISSING_VALUE
         The user verification token was not present.  It is a required input.
         
        MISSING = 6;
        See Also:
        Constant Field Values
      • BROWSER_ERROR_VALUE

        public static final int BROWSER_ERROR_VALUE
         A retriable error (such as network failure) occurred on the browser.
         Could easily be simulated by an attacker.
         
        BROWSER_ERROR = 7;
        See Also:
        Constant Field Values
    • Method Detail

      • values

        public static TokenProperties.InvalidReason[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (TokenProperties.InvalidReason c : TokenProperties.InvalidReason.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static TokenProperties.InvalidReason valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • getNumber

        public final int getNumber()
        Specified by:
        getNumber in interface com.google.protobuf.Internal.EnumLite
        Specified by:
        getNumber in interface com.google.protobuf.ProtocolMessageEnum
      • valueOf

        @Deprecated
        public static TokenProperties.InvalidReason valueOf​(int value)
        Deprecated.
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        value - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • forNumber

        public static TokenProperties.InvalidReason forNumber​(int value)
        Parameters:
        value - The numeric wire value of the corresponding enum entry.
        Returns:
        The enum associated with the given numeric wire value.
      • getValueDescriptor

        public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
        Specified by:
        getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnum
      • getDescriptorForType

        public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnum
      • getDescriptor

        public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
      • valueOf

        public static TokenProperties.InvalidReason valueOf​(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        desc - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null