Class OAuthCodeProperties
java.lang.Object
org.apereo.cas.configuration.model.support.oauth.OAuthCodeProperties
- All Implemented Interfaces:
Serializable
@RequiresModule(name="cas-server-support-oauth")
public class OAuthCodeProperties
extends Object
implements Serializable
This is
OAuthCodeProperties
.- Since:
- 5.2.0
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Number of times this code is valid and can be used.The storage object name used and created by CAS to hold OAuth codes in the backing ticket registry implementation.long
Duration in seconds where the code is valid.boolean
Remove the related access tokens when trying to use a code which is expired or no longer exists.setNumberOfUses
(int numberOfUses) Number of times this code is valid and can be used.setRemoveRelatedAccessTokens
(boolean removeRelatedAccessTokens) Remove the related access tokens when trying to use a code which is expired or no longer exists.setStorageName
(String storageName) The storage object name used and created by CAS to hold OAuth codes in the backing ticket registry implementation.setTimeToKillInSeconds
(long timeToKillInSeconds) Duration in seconds where the code is valid.
-
Constructor Details
-
OAuthCodeProperties
public OAuthCodeProperties()
-
-
Method Details
-
getNumberOfUses
public int getNumberOfUses()Number of times this code is valid and can be used. -
getTimeToKillInSeconds
public long getTimeToKillInSeconds()Duration in seconds where the code is valid. -
getStorageName
The storage object name used and created by CAS to hold OAuth codes in the backing ticket registry implementation. -
isRemoveRelatedAccessTokens
public boolean isRemoveRelatedAccessTokens()Remove the related access tokens when trying to use a code which is expired or no longer exists. -
setNumberOfUses
Number of times this code is valid and can be used.- Returns:
this
.
-
setTimeToKillInSeconds
Duration in seconds where the code is valid.- Returns:
this
.
-
setStorageName
The storage object name used and created by CAS to hold OAuth codes in the backing ticket registry implementation.- Returns:
this
.
-
setRemoveRelatedAccessTokens
Remove the related access tokens when trying to use a code which is expired or no longer exists.- Returns:
this
.
-