Class RefreshTokenRotationType

    • Method Detail

      • feature

        public final FeatureType feature()

        The state of refresh token rotation for the current app client.

        If the service returns an enum value that is not available in the current SDK version, feature will return FeatureType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from featureAsString().

        Returns:
        The state of refresh token rotation for the current app client.
        See Also:
        FeatureType
      • featureAsString

        public final String featureAsString()

        The state of refresh token rotation for the current app client.

        If the service returns an enum value that is not available in the current SDK version, feature will return FeatureType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from featureAsString().

        Returns:
        The state of refresh token rotation for the current app client.
        See Also:
        FeatureType
      • retryGracePeriodSeconds

        public final Integer retryGracePeriodSeconds()

        When you request a token refresh with GetTokensFromRefreshToken, the original refresh token that you're rotating out can remain valid for a period of time of up to 60 seconds. This allows for client-side retries. When RetryGracePeriodSeconds is 0, the grace period is disabled and a successful request immediately invalidates the submitted refresh token.

        Returns:
        When you request a token refresh with GetTokensFromRefreshToken, the original refresh token that you're rotating out can remain valid for a period of time of up to 60 seconds. This allows for client-side retries. When RetryGracePeriodSeconds is 0, the grace period is disabled and a successful request immediately invalidates the submitted refresh token.
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)