T - The type of the Identity used by this authentication scheme.public interface AuthScheme<T extends Identity>
IdentityProvider,
HttpSigner| Modifier and Type | Method and Description |
|---|---|
IdentityProvider<T> |
identityProvider(IdentityProviders providers)
Retrieve the identity provider associated with this authentication scheme.
|
String |
schemeId()
Retrieve the scheme ID, a unique identifier for the authentication scheme.
|
HttpSigner<T> |
signer()
Retrieve the signer associated with this authentication scheme.
|
String schemeId()
IdentityProvider<T> identityProvider(IdentityProviders providers)
For example, if the scheme ID is aws.auth#sigv4, the provider returns an AwsCredentialsIdentity, if the scheme ID
is httpBearerAuth, the provider returns a TokenIdentity.
Note, the returned identity provider may differ from the type of identity provider retrieved from the provided
IdentityProviders.
HttpSigner<T> signer()
Copyright © 2023. All rights reserved.