Interface IdentityProvider<IdentityT extends Identity>
-
@ThreadSafe public interface IdentityProvider<IdentityT extends Identity>
Interface for loadingIdentitythat is used for authentication.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Class<IdentityT>identityType()Retrieve the class of identity this identity provider produces.default CompletableFuture<? extends IdentityT>resolveIdentity()Resolve the identity from this identity provider.default CompletableFuture<? extends IdentityT>resolveIdentity(Consumer<ResolveIdentityRequest.Builder> consumer)Resolve the identity from this identity provider.CompletableFuture<? extends IdentityT>resolveIdentity(ResolveIdentityRequest request)Resolve the identity from this identity provider.
-
-
-
Method Detail
-
identityType
Class<IdentityT> identityType()
Retrieve the class of identity this identity provider produces. This is necessary for the SDK core to determine which identity provider should be used to resolve a specific type of identity.
-
resolveIdentity
CompletableFuture<? extends IdentityT> resolveIdentity(ResolveIdentityRequest request)
Resolve the identity from this identity provider.- Parameters:
request- The request to resolve an Identity
-
resolveIdentity
default CompletableFuture<? extends IdentityT> resolveIdentity(Consumer<ResolveIdentityRequest.Builder> consumer)
Resolve the identity from this identity provider. Similar toresolveIdentity(ResolveIdentityRequest), but takes a lambda to configure a newResolveIdentityRequest.Builder. This removes the need to callResolveIdentityRequest.builder()andSdkBuilder.build().- Parameters:
consumer- AConsumerto which an emptyResolveIdentityRequest.Builderwill be given.
-
resolveIdentity
default CompletableFuture<? extends IdentityT> resolveIdentity()
Resolve the identity from this identity provider.
-
-