Interface TokenLifecycleInterceptor


public interface TokenLifecycleInterceptor
Interface used for intercepting token creation and disposal.

On returning a token (i.e., when the implementation has finished using the token), no complicated operations should be performed, and are must be taken not to (inadvertently) throw Exceptions.

On getting a token, the method may (knowingly) throw an exception, in which case the entire token retrieval process is aborted, and thus the execution will not take place.

  • Method Details

    • onReturnTokenHandle

      void onReturnTokenHandle(String tokenHandleId)
    • onGetTokenHandle

      void onGetTokenHandle(String tokenHandleId) throws Exception
      Throws:
      Exception