Class JwtTokenProviderImpl

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean populateToken​(java.lang.String token)
      Populates the object with the specified delegation token.
      java.util.concurrent.CompletableFuture<java.lang.String> retrieveToken()
      Returns the delegation token.
      void signalTokenExpired()
      Signals the object that the token it may be holding has expired.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • retrieveToken

        public java.util.concurrent.CompletableFuture<java.lang.String> retrieveToken()
        Returns the delegation token. It returns existing delegation token if it is not close to expiry. If the token is close to expiry, it obtains a new delegation token and returns that one instead.
        Specified by:
        retrieveToken in interface DelegationTokenProvider
        a CompletableFuture that, when completed, will return the delegation token JWT compact value
      • populateToken

        public boolean populateToken​(java.lang.String token)
        Description copied from interface: DelegationTokenProvider
        Populates the object with the specified delegation token.
        Specified by:
        populateToken in interface DelegationTokenProvider
        token - the token to populate the object with
        whether the population was successful