public interface Token
| Modifier and Type | Method and Description |
|---|---|
String |
getMasterToken()
Returns the master token
|
String |
getPageToken(String uri) |
Map<String,String> |
getPageTokens() |
PageTokenValue |
getTimedPageToken(String uri) |
void |
regenerateUsedPageToken(String tokenFromRequest,
Supplier<String> tokenValueSupplier)
TODO is it worth the added performance penalty in case of a large application with a lot of pages?
|
void |
rotateAllPageTokens(Supplier<String> tokenValueSupplier)
Rotates all the existing page token values
|
void |
setMasterToken(String masterToken)
Sets the new master token
|
void |
setPageToken(String uri,
String pageToken) |
String |
setPageTokenIfAbsent(String uri,
Supplier<String> valueSupplier) |
void |
setPageTokens(Map<String,String> pageTokens)
Initialize or overwrite the entire page-token map
|
String getMasterToken()
void setMasterToken(String masterToken)
masterToken - the new master tokenString getPageToken(String uri)
uri - the URI to which the page token should be returnedPageTokenValue getTimedPageToken(String uri)
uri - the URI to which the timed page token should be returnedvoid setPageToken(String uri, String pageToken)
uri - the URI to which the page token should be associatedpageToken - the new page tokenString setPageTokenIfAbsent(String uri, Supplier<String> valueSupplier)
uri - the URI to which the page token should be associatedvalueSupplier - a supplier that generates new, unique tokens at each invocationMap<String,String> getPageTokens()
void setPageTokens(Map<String,String> pageTokens)
pageTokens - a map of URIs and their associated page tokensvoid rotateAllPageTokens(Supplier<String> tokenValueSupplier)
tokenValueSupplier - a supplier that generates new, unique tokens at each invocationvoid regenerateUsedPageToken(String tokenFromRequest, Supplier<String> tokenValueSupplier)
tokenFromRequest - the current token which needs to be rotatedtokenValueSupplier - a supplier that generates new, unique tokens at each invocationCopyright © 2025 OWASP. All rights reserved.