Package com.inrupt.client.uma
Interface ClaimGatheringHandler
public interface ClaimGatheringHandler
A handler capable of gathering claims for a given type, from a given issuer.
-
Method Summary
Modifier and TypeMethodDescriptiongather()
Gather a claim token asynchronously.Get the claim token format supported by this handler.Get the claim type supported by this handler.Get the issuer supported by this handler.default boolean
isCompatibleWith
(RequiredClaims requirements) Determine if this handler is compatible with the listed UMA requirements.
-
Method Details
-
getClaimTokenFormat
String getClaimTokenFormat()Get the claim token format supported by this handler.- Returns:
- the supported claim token format
-
getIssuer
String getIssuer()Get the issuer supported by this handler.- Returns:
- the supported issuer
-
getClaimType
String getClaimType()Get the claim type supported by this handler.- Returns:
- the supported claim type
-
gather
CompletionStage<ClaimToken> gather()Gather a claim token asynchronously.- Returns:
- the next stage of completion containing a new claim token
-
isCompatibleWith
Determine if this handler is compatible with the listed UMA requirements.- Parameters:
requirements
- the requirements for an interaction to proceed- Returns:
- true if this handler is compatible with the described requirements; false otherwise
-