Skip to content

1.1.1 Authorizer

Anders Mikkelsen edited this page Dec 21, 2017 · 2 revisions

Authorizer Interface

The Authorizer is optional for implementing an authorizer class. It is used by the VerificationServiceImpl.

public interface Authorizer {
    boolean isAsync();
    boolean authorize(Jws<Claims> claims, String domainIdentifier, Authorization authorization) throws IllegalAccessException;
    void authorize(Jws<Claims> claims, String domainIdentifier, Authorization authorization, Handler<AsyncResult<Boolean>> resultHandler);
    void block(String domainIdentifier, String userId, Handler<AsyncResult<Boolean>> resultHandler);
}
Clone this wiki locally