Package io.pravega.client.security.auth
Interface DelegationTokenProvider
- 
- All Known Implementing Classes:
- EmptyTokenProviderImpl,- JwtTokenProviderImpl,- StringTokenProviderImpl
 
 public interface DelegationTokenProviderA client-side proxy for obtaining a delegation token from the server. Note: Delegation tokens are used by Segment Store services to authorize requests. They are created by Controller at client's behest.
- 
- 
Method SummaryAll Methods Instance Methods Abstract 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- 
retrieveTokenjava.util.concurrent.CompletableFuture<java.lang.String> retrieveToken() Retrieve delegation token.- Returns:
- a CompletableFuture that, when completed, will return the retrieved delegation token
 
 - 
populateTokenboolean populateToken(java.lang.String token) Populates the object with the specified delegation token.- Parameters:
- token- the token to populate the object with
- Returns:
- whether the population was successful
 
 - 
signalTokenExpiredvoid signalTokenExpired() Signals the object that the token it may be holding has expired.
 
- 
 
-