Class JwtAuthorizer

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

    public class JwtAuthorizer
    extends java.lang.Object
    implements com.linecorp.armeria.server.auth.Authorizer<com.linecorp.armeria.server.auth.OAuth2Token>
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static interface  JwtAuthorizer.Factory  
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static io.netty.util.AttributeKey<com.auth0.jwt.interfaces.DecodedJWT> DECODED_JWT  
      static io.netty.util.AttributeKey<java.lang.String> RAW_JWT  
    • 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
    • Field Detail

      • DECODED_JWT

        public static final io.netty.util.AttributeKey<com.auth0.jwt.interfaces.DecodedJWT> DECODED_JWT
      • RAW_JWT

        public static final io.netty.util.AttributeKey<java.lang.String> RAW_JWT
    • 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>