Class ClientCredentialsFlow
- java.lang.Object
-
- io.streamnative.pulsar.handlers.kop.security.oauth.ClientCredentialsFlow
-
- All Implemented Interfaces:
Closeable,AutoCloseable
public class ClientCredentialsFlow extends Object implements Closeable
The OAuth 2.0 client credential flow.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classClientCredentialsFlow.ClientInfostatic classClientCredentialsFlow.Metadatastatic classClientCredentialsFlow.TokenError
-
Constructor Summary
Constructors Constructor Description ClientCredentialsFlow(ClientConfig clientConfig)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OAuthBearerTokenImplauthenticate()voidclose()
-
-
-
Constructor Detail
-
ClientCredentialsFlow
public ClientCredentialsFlow(ClientConfig clientConfig)
-
-
Method Detail
-
authenticate
public OAuthBearerTokenImpl authenticate() throws IOException
- Throws:
IOException
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
-