Class TokenValidityUnitsType

    • Method Detail

      • accessToken

        public final TimeUnitsType accessToken()

        A time unit for the value that you set in the AccessTokenValidity parameter. The default AccessTokenValidity time unit is hours. AccessTokenValidity duration can range from five minutes to one day.

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

        Returns:
        A time unit for the value that you set in the AccessTokenValidity parameter. The default AccessTokenValidity time unit is hours. AccessTokenValidity duration can range from five minutes to one day.
        See Also:
        TimeUnitsType
      • accessTokenAsString

        public final String accessTokenAsString()

        A time unit for the value that you set in the AccessTokenValidity parameter. The default AccessTokenValidity time unit is hours. AccessTokenValidity duration can range from five minutes to one day.

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

        Returns:
        A time unit for the value that you set in the AccessTokenValidity parameter. The default AccessTokenValidity time unit is hours. AccessTokenValidity duration can range from five minutes to one day.
        See Also:
        TimeUnitsType
      • idToken

        public final TimeUnitsType idToken()

        A time unit for the value that you set in the IdTokenValidity parameter. The default IdTokenValidity time unit is hours. IdTokenValidity duration can range from five minutes to one day.

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

        Returns:
        A time unit for the value that you set in the IdTokenValidity parameter. The default IdTokenValidity time unit is hours. IdTokenValidity duration can range from five minutes to one day.
        See Also:
        TimeUnitsType
      • idTokenAsString

        public final String idTokenAsString()

        A time unit for the value that you set in the IdTokenValidity parameter. The default IdTokenValidity time unit is hours. IdTokenValidity duration can range from five minutes to one day.

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

        Returns:
        A time unit for the value that you set in the IdTokenValidity parameter. The default IdTokenValidity time unit is hours. IdTokenValidity duration can range from five minutes to one day.
        See Also:
        TimeUnitsType
      • refreshToken

        public final TimeUnitsType refreshToken()

        A time unit for the value that you set in the RefreshTokenValidity parameter. The default RefreshTokenValidity time unit is days. RefreshTokenValidity duration can range from 60 minutes to 10 years.

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

        Returns:
        A time unit for the value that you set in the RefreshTokenValidity parameter. The default RefreshTokenValidity time unit is days. RefreshTokenValidity duration can range from 60 minutes to 10 years.
        See Also:
        TimeUnitsType
      • refreshTokenAsString

        public final String refreshTokenAsString()

        A time unit for the value that you set in the RefreshTokenValidity parameter. The default RefreshTokenValidity time unit is days. RefreshTokenValidity duration can range from 60 minutes to 10 years.

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

        Returns:
        A time unit for the value that you set in the RefreshTokenValidity parameter. The default RefreshTokenValidity time unit is days. RefreshTokenValidity duration can range from 60 minutes to 10 years.
        See Also:
        TimeUnitsType
      • 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)