Package com.rabbitmq.stream.oauth2
Interface CredentialsManager.Registration
-
- All Superinterfaces:
AutoCloseable
- All Known Implementing Classes:
CredentialsManager.NoOpRegistration
- Enclosing interface:
- CredentialsManager
public static interface CredentialsManager.Registration extends AutoCloseable
A component registration.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()Close the registration.voidconnect(CredentialsManager.AuthenticationCallback callback)Connection request from the component.
-
-
-
Method Detail
-
connect
void connect(CredentialsManager.AuthenticationCallback callback)
Connection request from the component.The component calls this method when it needs to authenticate. The underlying credentials manager implementation must take care of providing the component with the appropriate credentials in the callback.
- Parameters:
callback- client code to authenticate the component
-
close
void close()
Close the registration.- Specified by:
closein interfaceAutoCloseable
-
-