Package io.pravega.client.security.auth
Class EmptyTokenProviderImpl
- java.lang.Object
-
- io.pravega.client.security.auth.EmptyTokenProviderImpl
-
- All Implemented Interfaces:
DelegationTokenProvider
public class EmptyTokenProviderImpl extends java.lang.Object implements DelegationTokenProvider
Provides empty delegation tokens. This provider is useful when auth is disabled.
-
-
Constructor Summary
Constructors Constructor Description EmptyTokenProviderImpl()
-
Method Summary
All 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
-
retrieveToken
public java.util.concurrent.CompletableFuture<java.lang.String> retrieveToken()
Description copied from interface:DelegationTokenProviderRetrieve delegation token.- Specified by:
retrieveTokenin interfaceDelegationTokenProvider- Returns:
- a CompletableFuture that, when completed, will return the retrieved delegation token
-
populateToken
public boolean populateToken(java.lang.String token)
Description copied from interface:DelegationTokenProviderPopulates the object with the specified delegation token.- Specified by:
populateTokenin interfaceDelegationTokenProvider- Parameters:
token- the token to populate the object with- Returns:
- whether the population was successful
-
signalTokenExpired
public void signalTokenExpired()
Description copied from interface:DelegationTokenProviderSignals the object that the token it may be holding has expired.- Specified by:
signalTokenExpiredin interfaceDelegationTokenProvider
-
-