Class IamAuthorizer

  • All Implemented Interfaces:
    com.linecorp.armeria.server.auth.Authorizer<com.linecorp.armeria.server.auth.OAuth2Token>

    public class IamAuthorizer
    extends java.lang.Object
    implements com.linecorp.armeria.server.auth.Authorizer<com.linecorp.armeria.server.auth.OAuth2Token>
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.concurrent.CompletionStage<java.lang.Boolean> authorize​(com.linecorp.armeria.server.ServiceRequestContext ctx, com.linecorp.armeria.server.auth.OAuth2Token data)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface com.linecorp.armeria.server.auth.Authorizer

        orElse
    • Constructor Detail

      • IamAuthorizer

        @Inject
        public IamAuthorizer​(IamPermissionChecker checker,
                             com.google.auth.Credentials serverCredentials)
    • Method Detail

      • authorize

        public java.util.concurrent.CompletionStage<java.lang.Boolean> authorize​(com.linecorp.armeria.server.ServiceRequestContext ctx,
                                                                                 com.linecorp.armeria.server.auth.OAuth2Token data)
        Specified by:
        authorize in interface com.linecorp.armeria.server.auth.Authorizer<com.linecorp.armeria.server.auth.OAuth2Token>