Package com.rabbitmq.client.amqp.oauth2
Interface CredentialsManager
- All Known Implementing Classes:
CredentialsManager.NoOpCredentialsManager
,TokenCredentialsManager
public interface CredentialsManager
Contract to authenticate and possibly re-authenticate application components.
A typical "application component" is a connection.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
Component authentication callback.static class
static class
static interface
A component registration. -
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionregister
(String name, CredentialsManager.AuthenticationCallback updateCallback) Register a component for authentication.
-
Field Details
-
NO_OP
No-op credentials manager.
-
-
Method Details
-
register
CredentialsManager.Registration register(String name, CredentialsManager.AuthenticationCallback updateCallback) Register a component for authentication.- Parameters:
name
- component name (must be unique)updateCallback
- callback to update the component authentication- Returns:
- the registration (must be closed when no longer necessary)
-