ClaimsBasedSecurityNode Interface
Implements
public interface ClaimsBasedSecurityNode
extends AutoCloseable, AsyncCloseable
Claims-based security (CBS) node that authorizes connections with AMQP services.
Method Summary
Modifier and Type | Method and Description |
---|---|
abstract
Mono<Offset |
authorize(String audience, String scopes)
Authorizes the caller with the CBS node to access resources for the |
abstract void |
close()
Closes session to the claims-based security node. |
default Mono<Void> | closeAsync() |
Method Details
authorize
public abstract Mono
Authorizes the caller with the CBS node to access resources for the audience
.
Parameters:
audience
- The audience to which the token applies. This can be the path within the AMQP message broker.
scopes
- The requested scopes for the TokenCredential.
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
public abstract void close()
Closes session to the claims-based security node.
closeAsync
public default Mono
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for Java