Class JwtAuthorizer
- java.lang.Object
-
- org.curioswitch.common.server.framework.auth.jwt.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
-
Constructor Summary
Constructors Constructor Description JwtAuthorizer(JwtVerifier.Factory verifier, JwtVerifier.Algorithm algorithm, java.lang.String publicKeysUrl)
-
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)
-
-
-
Constructor Detail
-
JwtAuthorizer
public JwtAuthorizer(JwtVerifier.Factory verifier, JwtVerifier.Algorithm algorithm, java.lang.String publicKeysUrl)
-
-
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 interfacecom.linecorp.armeria.server.auth.Authorizer<com.linecorp.armeria.server.auth.OAuth2Token>
-
-