Class TokenRevocationBuilder
java.lang.Object
com.linecorp.armeria.common.auth.oauth2.TokenRevocationBuilder
@UnstableApi public final class TokenRevocationBuilder extends Object
Builds
TokenRevocation
.-
Method Summary
Modifier and Type Method Description TokenRevocation
build()
Builds a new instance ofTokenRevocation
using configured parameters.TokenRevocationBuilder
clientAuthorization(Supplier<String> authorizationSupplier, String authorizationType)
Provides client authorization for the OAuth 2.0 requests based on encoded authorization token and authorization type, as per [RFC6749], Section 2.3.TokenRevocationBuilder
clientBasicAuthorization(Supplier<String> authorizationSupplier)
Provides client authorization for the OAuth 2.0 requests based on encoded authorization token andBasic
authorization type, as per [RFC6749], Section 2.3.TokenRevocationBuilder
clientCredentials(Supplier<? extends Map.Entry<String,String>> credentialsSupplier, String authorizationType)
Provides client authorization for the OAuth 2.0 requests based on client credentials and authorization type, as per [RFC6749], Section 2.3.
-
Method Details
-
clientAuthorization
public TokenRevocationBuilder clientAuthorization(Supplier<String> authorizationSupplier, String authorizationType)Provides client authorization for the OAuth 2.0 requests based on encoded authorization token and authorization type, as per [RFC6749], Section 2.3.- Parameters:
authorizationSupplier
- A supplier of encoded client authorization token.authorizationType
- One of the registered HTTP authentication schemes as per HTTP Authentication Scheme Registry.
-
clientBasicAuthorization
Provides client authorization for the OAuth 2.0 requests based on encoded authorization token andBasic
authorization type, as per [RFC6749], Section 2.3.- Parameters:
authorizationSupplier
- A supplier of encoded client authorization token.
-
clientCredentials
public TokenRevocationBuilder clientCredentials(Supplier<? extends Map.Entry<String,String>> credentialsSupplier, String authorizationType)Provides client authorization for the OAuth 2.0 requests based on client credentials and authorization type, as per [RFC6749], Section 2.3.- Parameters:
credentialsSupplier
- A supplier of client credentials.authorizationType
- One of the registered HTTP authentication schemes as per HTTP Authentication Scheme Registry.
-
build
Builds a new instance ofTokenRevocation
using configured parameters.
-