Package io.pravega.client.security.auth
Class StringTokenProviderImpl
- java.lang.Object
- 
- io.pravega.client.security.auth.StringTokenProviderImpl
 
- 
- All Implemented Interfaces:
- DelegationTokenProvider
 
 public class StringTokenProviderImpl extends java.lang.Object implements DelegationTokenProvider A provider for handling non-JWT, non-empty delegation tokens. Used solely for testing purposes.
- 
- 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanpopulateToken(java.lang.String token)Populates the object with the specified delegation token.java.util.concurrent.CompletableFuture<java.lang.String>retrieveToken()Retrieve delegation token.voidsignalTokenExpired()Signals the object that the token it may be holding has expired.
 
- 
- 
- 
Method Detail- 
retrieveTokenpublic java.util.concurrent.CompletableFuture<java.lang.String> retrieveToken() Description copied from interface:DelegationTokenProviderRetrieve delegation token.- Specified by:
- retrieveTokenin interface- DelegationTokenProvider
- Returns:
- a CompletableFuture that, when completed, will return the retrieved delegation token
 
 - 
populateTokenpublic boolean populateToken(java.lang.String token) Description copied from interface:DelegationTokenProviderPopulates the object with the specified delegation token.- Specified by:
- populateTokenin interface- DelegationTokenProvider
- Parameters:
- token- the token to populate the object with
- Returns:
- whether the population was successful
 
 - 
signalTokenExpiredpublic void signalTokenExpired() Description copied from interface:DelegationTokenProviderSignals the object that the token it may be holding has expired.- Specified by:
- signalTokenExpiredin interface- DelegationTokenProvider
 
 
- 
 
-