public interface OIDCResourceAvailabilityHandler
OIDCAuthorization.setAvailabilityHandler(OIDCResourceAvailabilityHandler)
Modifier and Type | Method and Description |
---|---|
boolean |
onAuthorizationNecessary(OIDCAuthorization oidcAuthorization)
This method is called by the @see
OIDCAuthorization.authorizeByUserAndPW(String, String) method, if the resource is not available without authorization. |
void |
onResourceAvailable(OIDCAuthorization.URLProcessor urlProcessor)
This method is called by the @see
OIDCAuthorization.authorizeByUserAndPW(String, String) method, as soon as the resource becomes available (directly or after login etc.). |
void onResourceAvailable(OIDCAuthorization.URLProcessor urlProcessor)
OIDCAuthorization.authorizeByUserAndPW(String, String)
method, as soon as the resource becomes available (directly or after login etc.). It has to be implemented by a descendant class.urlProcessor
- the URLProcessor which was used to establish the connection and from where the return values can be acquired.boolean onAuthorizationNecessary(OIDCAuthorization oidcAuthorization)
OIDCAuthorization.authorizeByUserAndPW(String, String)
method, if the resource is not available without authorization.oidcAuthorization
- the OIDCAuthorization object from where the return values can be acquired.