Interface TokenHandler.ClientTokenCallback<T>
- Type Parameters:
T- returned type
- Enclosing interface:
- TokenHandler
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Callback to execute with a
ClientToken.-
Method Summary
Modifier and TypeMethodDescriptionapply(ClientToken clientToken) Method to invoke with aClientToken.
-
Method Details
-
apply
Method to invoke with aClientToken.If authorisation with the token fails, this method should throw
TokenHandler.InvalidTokenException.- Parameters:
clientToken- token to be used for authorisation with an OAuth 2.0 server- Returns:
- outcome of the invocation
- Throws:
TokenHandler.InvalidTokenException- thrown if the token is invalid and authorisation failed
-