Interface AuthorizationProvider
- All Known Implementing Classes:
BasicAuthorizationProvider,BearerAuthorizationProvider,NoAuthorizationProvider,SingleSignOn
public interface AuthorizationProvider
Interface for authorisation
-
Method Summary
Modifier and TypeMethodDescriptionGets a response containing the Authorisation Header whenrequired()istrue, otherwise an empty responsedefault booleanrequired()Determines if authorisation is required no not
-
Method Details
-
required
default boolean required()Determines if authorisation is required no not- Returns:
trueif Authorisation is required orfalseif not.
-
getAuthorization
Gets a response containing the Authorisation Header whenrequired()istrue, otherwise an empty response- Returns:
- a response containing the Authorisation Header.
-