Class TokenValidityUnitsType
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<TokenValidityUnitsType.Builder,TokenValidityUnitsType>
The time units that, with IdTokenValidity, AccessTokenValidity, and
RefreshTokenValidity, set and display the duration of ID, access, and refresh tokens for an app client.
You can assign a separate token validity unit to each type of token.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionfinal TimeUnitsTypeA time unit for the value that you set in theAccessTokenValidityparameter.final StringA time unit for the value that you set in theAccessTokenValidityparameter.builder()final booleanfinal booleanequalsBySdkFields(Object obj) final <T> Optional<T>getValueForField(String fieldName, Class<T> clazz) final inthashCode()final TimeUnitsTypeidToken()A time unit for the value that you set in theIdTokenValidityparameter.final StringA time unit for the value that you set in theIdTokenValidityparameter.final TimeUnitsTypeA time unit for the value that you set in theRefreshTokenValidityparameter.final StringA time unit for the value that you set in theRefreshTokenValidityparameter.static Class<? extends TokenValidityUnitsType.Builder>final StringtoString()Returns a string representation of this object.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
accessToken
A time unit for the value that you set in the
AccessTokenValidityparameter. The defaultAccessTokenValiditytime unit ishours.AccessTokenValidityduration can range from five minutes to one day.If the service returns an enum value that is not available in the current SDK version,
accessTokenwill returnTimeUnitsType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromaccessTokenAsString().- Returns:
- A time unit for the value that you set in the
AccessTokenValidityparameter. The defaultAccessTokenValiditytime unit ishours.AccessTokenValidityduration can range from five minutes to one day. - See Also:
-
accessTokenAsString
A time unit for the value that you set in the
AccessTokenValidityparameter. The defaultAccessTokenValiditytime unit ishours.AccessTokenValidityduration can range from five minutes to one day.If the service returns an enum value that is not available in the current SDK version,
accessTokenwill returnTimeUnitsType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromaccessTokenAsString().- Returns:
- A time unit for the value that you set in the
AccessTokenValidityparameter. The defaultAccessTokenValiditytime unit ishours.AccessTokenValidityduration can range from five minutes to one day. - See Also:
-
idToken
A time unit for the value that you set in the
IdTokenValidityparameter. The defaultIdTokenValiditytime unit ishours.IdTokenValidityduration can range from five minutes to one day.If the service returns an enum value that is not available in the current SDK version,
idTokenwill returnTimeUnitsType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromidTokenAsString().- Returns:
- A time unit for the value that you set in the
IdTokenValidityparameter. The defaultIdTokenValiditytime unit ishours.IdTokenValidityduration can range from five minutes to one day. - See Also:
-
idTokenAsString
A time unit for the value that you set in the
IdTokenValidityparameter. The defaultIdTokenValiditytime unit ishours.IdTokenValidityduration can range from five minutes to one day.If the service returns an enum value that is not available in the current SDK version,
idTokenwill returnTimeUnitsType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromidTokenAsString().- Returns:
- A time unit for the value that you set in the
IdTokenValidityparameter. The defaultIdTokenValiditytime unit ishours.IdTokenValidityduration can range from five minutes to one day. - See Also:
-
refreshToken
A time unit for the value that you set in the
RefreshTokenValidityparameter. The defaultRefreshTokenValiditytime unit isdays.RefreshTokenValidityduration can range from 60 minutes to 10 years.If the service returns an enum value that is not available in the current SDK version,
refreshTokenwill returnTimeUnitsType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromrefreshTokenAsString().- Returns:
- A time unit for the value that you set in the
RefreshTokenValidityparameter. The defaultRefreshTokenValiditytime unit isdays.RefreshTokenValidityduration can range from 60 minutes to 10 years. - See Also:
-
refreshTokenAsString
A time unit for the value that you set in the
RefreshTokenValidityparameter. The defaultRefreshTokenValiditytime unit isdays.RefreshTokenValidityduration can range from 60 minutes to 10 years.If the service returns an enum value that is not available in the current SDK version,
refreshTokenwill returnTimeUnitsType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromrefreshTokenAsString().- Returns:
- A time unit for the value that you set in the
RefreshTokenValidityparameter. The defaultRefreshTokenValiditytime unit isdays.RefreshTokenValidityduration can range from 60 minutes to 10 years. - See Also:
-
toBuilder
- Specified by:
toBuilderin interfaceToCopyableBuilder<TokenValidityUnitsType.Builder,TokenValidityUnitsType>
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode() -
equals
-
equalsBySdkFields
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
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. -
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-