Package com.azure.core.amqp
Interface ClaimsBasedSecurityNode
- All Superinterfaces:
AsyncCloseable
,AutoCloseable
Claims-based security (CBS) node that authorizes connections with AMQP services.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionAuthorizes the caller with the CBS node to access resources for theaudience
.void
close()
Closes session to the claims-based security node.Begins the close operation.
-
Method Details
-
authorize
Authorizes the caller with the CBS node to access resources for theaudience
.- Parameters:
audience
- The audience to which the token applies. This can be the path within the AMQP message broker.scopes
- The requested scopes for theTokenCredential
.- Returns:
- A Mono that completes with the callee's expiration date if it is successful and errors if authorization was unsuccessful. Once the expiration date has elapsed, the callee needs to reauthorize with the CBS node.
-
close
void close()Closes session to the claims-based security node.- Specified by:
close
in interfaceAutoCloseable
-
closeAsync
Description copied from interface:AsyncCloseable
Begins the close operation. If one is in progress, will return that existing close operation. If the close operation is unsuccessful, the Mono completes with an error.- Specified by:
closeAsync
in interfaceAsyncCloseable
- Returns:
- A Mono representing the close operation. If the close operation is unsuccessful, the Mono completes with an error.
-