public class TokenValidityUnitsType
extends java.lang.Object
implements java.io.Serializable
The data type TokenValidityUnits specifies the time units you use when you set the duration of ID, access, and refresh tokens.
| Constructor and Description |
|---|
TokenValidityUnitsType() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAccessToken()
A time unit of
seconds, minutes,
hours, or days for the value that you set in
the AccessTokenValidity parameter. |
java.lang.String |
getIdToken()
A time unit of
seconds, minutes,
hours, or days for the value that you set in
the IdTokenValidity parameter. |
java.lang.String |
getRefreshToken()
A time unit of
seconds, minutes,
hours, or days for the value that you set in
the RefreshTokenValidity parameter. |
int |
hashCode() |
void |
setAccessToken(java.lang.String accessToken)
A time unit of
seconds, minutes,
hours, or days for the value that you set in
the AccessTokenValidity parameter. |
void |
setAccessToken(TimeUnitsType accessToken)
A time unit of
seconds, minutes,
hours, or days for the value that you set in
the AccessTokenValidity parameter. |
void |
setIdToken(java.lang.String idToken)
A time unit of
seconds, minutes,
hours, or days for the value that you set in
the IdTokenValidity parameter. |
void |
setIdToken(TimeUnitsType idToken)
A time unit of
seconds, minutes,
hours, or days for the value that you set in
the IdTokenValidity parameter. |
void |
setRefreshToken(java.lang.String refreshToken)
A time unit of
seconds, minutes,
hours, or days for the value that you set in
the RefreshTokenValidity parameter. |
void |
setRefreshToken(TimeUnitsType refreshToken)
A time unit of
seconds, minutes,
hours, or days for the value that you set in
the RefreshTokenValidity parameter. |
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
TokenValidityUnitsType |
withAccessToken(java.lang.String accessToken)
A time unit of
seconds, minutes,
hours, or days for the value that you set in
the AccessTokenValidity parameter. |
TokenValidityUnitsType |
withAccessToken(TimeUnitsType accessToken)
A time unit of
seconds, minutes,
hours, or days for the value that you set in
the AccessTokenValidity parameter. |
TokenValidityUnitsType |
withIdToken(java.lang.String idToken)
A time unit of
seconds, minutes,
hours, or days for the value that you set in
the IdTokenValidity parameter. |
TokenValidityUnitsType |
withIdToken(TimeUnitsType idToken)
A time unit of
seconds, minutes,
hours, or days for the value that you set in
the IdTokenValidity parameter. |
TokenValidityUnitsType |
withRefreshToken(java.lang.String refreshToken)
A time unit of
seconds, minutes,
hours, or days for the value that you set in
the RefreshTokenValidity parameter. |
TokenValidityUnitsType |
withRefreshToken(TimeUnitsType refreshToken)
A time unit of
seconds, minutes,
hours, or days for the value that you set in
the RefreshTokenValidity parameter. |
public java.lang.String getAccessToken()
A time unit of seconds, minutes,
hours, or days 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.
Constraints:
Allowed Values: seconds, minutes, hours, days
A time unit of seconds, minutes,
hours, or days 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.
TimeUnitsTypepublic void setAccessToken(java.lang.String accessToken)
A time unit of seconds, minutes,
hours, or days 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.
Constraints:
Allowed Values: seconds, minutes, hours, days
accessToken -
A time unit of seconds, minutes,
hours, or days 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.
TimeUnitsTypepublic TokenValidityUnitsType withAccessToken(java.lang.String accessToken)
A time unit of seconds, minutes,
hours, or days 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.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: seconds, minutes, hours, days
accessToken -
A time unit of seconds, minutes,
hours, or days 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.
TimeUnitsTypepublic void setAccessToken(TimeUnitsType accessToken)
A time unit of seconds, minutes,
hours, or days 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.
Constraints:
Allowed Values: seconds, minutes, hours, days
accessToken -
A time unit of seconds, minutes,
hours, or days 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.
TimeUnitsTypepublic TokenValidityUnitsType withAccessToken(TimeUnitsType accessToken)
A time unit of seconds, minutes,
hours, or days 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.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: seconds, minutes, hours, days
accessToken -
A time unit of seconds, minutes,
hours, or days 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.
TimeUnitsTypepublic java.lang.String getIdToken()
A time unit of seconds, minutes,
hours, or days 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.
Constraints:
Allowed Values: seconds, minutes, hours, days
A time unit of seconds, minutes,
hours, or days 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.
TimeUnitsTypepublic void setIdToken(java.lang.String idToken)
A time unit of seconds, minutes,
hours, or days 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.
Constraints:
Allowed Values: seconds, minutes, hours, days
idToken -
A time unit of seconds, minutes,
hours, or days 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.
TimeUnitsTypepublic TokenValidityUnitsType withIdToken(java.lang.String idToken)
A time unit of seconds, minutes,
hours, or days 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.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: seconds, minutes, hours, days
idToken -
A time unit of seconds, minutes,
hours, or days 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.
TimeUnitsTypepublic void setIdToken(TimeUnitsType idToken)
A time unit of seconds, minutes,
hours, or days 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.
Constraints:
Allowed Values: seconds, minutes, hours, days
idToken -
A time unit of seconds, minutes,
hours, or days 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.
TimeUnitsTypepublic TokenValidityUnitsType withIdToken(TimeUnitsType idToken)
A time unit of seconds, minutes,
hours, or days 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.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: seconds, minutes, hours, days
idToken -
A time unit of seconds, minutes,
hours, or days 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.
TimeUnitsTypepublic java.lang.String getRefreshToken()
A time unit of seconds, minutes,
hours, or days 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.
Constraints:
Allowed Values: seconds, minutes, hours, days
A time unit of seconds, minutes,
hours, or days 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.
TimeUnitsTypepublic void setRefreshToken(java.lang.String refreshToken)
A time unit of seconds, minutes,
hours, or days 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.
Constraints:
Allowed Values: seconds, minutes, hours, days
refreshToken -
A time unit of seconds, minutes,
hours, or days 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.
TimeUnitsTypepublic TokenValidityUnitsType withRefreshToken(java.lang.String refreshToken)
A time unit of seconds, minutes,
hours, or days 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.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: seconds, minutes, hours, days
refreshToken -
A time unit of seconds, minutes,
hours, or days 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.
TimeUnitsTypepublic void setRefreshToken(TimeUnitsType refreshToken)
A time unit of seconds, minutes,
hours, or days 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.
Constraints:
Allowed Values: seconds, minutes, hours, days
refreshToken -
A time unit of seconds, minutes,
hours, or days 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.
TimeUnitsTypepublic TokenValidityUnitsType withRefreshToken(TimeUnitsType refreshToken)
A time unit of seconds, minutes,
hours, or days 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.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: seconds, minutes, hours, days
refreshToken -
A time unit of seconds, minutes,
hours, or days 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.
TimeUnitsTypepublic java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object