Class TokenStore


  • public final class TokenStore
    extends Object
    The configuration settings of the token store.
    • Constructor Detail

      • TokenStore

        public TokenStore()
    • Method Detail

      • enabled

        public Boolean enabled()
        Get the enabled property: <code>true</code> to durably store platform-specific security tokens that are obtained during login flows; otherwise, <code>false</code>. The default is <code>false</code>.
        Returns:
        the enabled value.
      • withEnabled

        public TokenStore withEnabled​(Boolean enabled)
        Set the enabled property: <code>true</code> to durably store platform-specific security tokens that are obtained during login flows; otherwise, <code>false</code>. The default is <code>false</code>.
        Parameters:
        enabled - the enabled value to set.
        Returns:
        the TokenStore object itself.
      • tokenRefreshExtensionHours

        public Double tokenRefreshExtensionHours()
        Get the tokenRefreshExtensionHours property: The number of hours after session token expiration that a session token can be used to call the token refresh API. The default is 72 hours.
        Returns:
        the tokenRefreshExtensionHours value.
      • withTokenRefreshExtensionHours

        public TokenStore withTokenRefreshExtensionHours​(Double tokenRefreshExtensionHours)
        Set the tokenRefreshExtensionHours property: The number of hours after session token expiration that a session token can be used to call the token refresh API. The default is 72 hours.
        Parameters:
        tokenRefreshExtensionHours - the tokenRefreshExtensionHours value to set.
        Returns:
        the TokenStore object itself.
      • fileSystem

        public FileSystemTokenStore fileSystem()
        Get the fileSystem property: The configuration settings of the storage of the tokens if a file system is used.
        Returns:
        the fileSystem value.
      • withFileSystem

        public TokenStore withFileSystem​(FileSystemTokenStore fileSystem)
        Set the fileSystem property: The configuration settings of the storage of the tokens if a file system is used.
        Parameters:
        fileSystem - the fileSystem value to set.
        Returns:
        the TokenStore object itself.
      • azureBlobStorage

        public BlobStorageTokenStore azureBlobStorage()
        Get the azureBlobStorage property: The configuration settings of the storage of the tokens if blob storage is used.
        Returns:
        the azureBlobStorage value.
      • withAzureBlobStorage

        public TokenStore withAzureBlobStorage​(BlobStorageTokenStore azureBlobStorage)
        Set the azureBlobStorage property: The configuration settings of the storage of the tokens if blob storage is used.
        Parameters:
        azureBlobStorage - the azureBlobStorage value to set.
        Returns:
        the TokenStore object itself.
      • validate

        public void validate()
        Validates the instance.
        Throws:
        IllegalArgumentException - thrown if the instance is not valid.