public final class IdentityClient
extends java.lang.Object
Constructor and Description |
---|
IdentityClient()
Creates an IdentityClient with default options.
|
IdentityClient(IdentityClientOptions options)
Creates an IdentityClient with the given options.
|
Modifier and Type | Method and Description |
---|---|
reactor.core.publisher.Mono<AccessToken> |
authenticateToIMDSEndpoint(java.lang.String clientId,
java.lang.String[] scopes)
Asynchronously acquire a token from the Virtual Machine IMDS endpoint.
|
reactor.core.publisher.Mono<AccessToken> |
authenticateToManagedIdentityEnpoint(java.lang.String msiEndpoint,
java.lang.String msiSecret,
java.lang.String clientId,
java.lang.String[] scopes)
Asynchronously acquire a token from the App Service Managed Service Identity endpoint.
|
reactor.core.publisher.Mono<AccessToken> |
authenticateWithClientSecret(java.lang.String tenantId,
java.lang.String clientId,
java.lang.String clientSecret,
java.lang.String[] scopes)
Asynchronously acquire a token from Active Directory with a client secret.
|
reactor.core.publisher.Mono<AccessToken> |
authenticateWithPemCertificate(java.lang.String tenantId,
java.lang.String clientId,
java.lang.String pemCertificatePath,
java.lang.String[] scopes)
Asynchronously acquire a token from Active Directory with a PEM certificate.
|
reactor.core.publisher.Mono<AccessToken> |
authenticateWithPfxCertificate(java.lang.String tenantId,
java.lang.String clientId,
java.lang.String pfxCertificatePath,
java.lang.String pfxCertificatePassword,
java.lang.String[] scopes)
Asynchronously acquire a token from Active Directory with a PKCS12 certificate.
|
public IdentityClient()
public IdentityClient(IdentityClientOptions options)
options
- the options configuring the client.public reactor.core.publisher.Mono<AccessToken> authenticateWithClientSecret(java.lang.String tenantId, java.lang.String clientId, java.lang.String clientSecret, java.lang.String[] scopes)
tenantId
- the tenant ID of the applicationclientId
- the client ID of the applicationclientSecret
- the client secret of the applicationscopes
- the scopes to authenticate topublic reactor.core.publisher.Mono<AccessToken> authenticateWithPfxCertificate(java.lang.String tenantId, java.lang.String clientId, java.lang.String pfxCertificatePath, java.lang.String pfxCertificatePassword, java.lang.String[] scopes)
tenantId
- the tenant ID of the applicationclientId
- the client ID of the applicationpfxCertificatePath
- the path to the PKCS12 certificate of the applicationpfxCertificatePassword
- the password protecting the PFX certificatescopes
- the scopes to authenticate topublic reactor.core.publisher.Mono<AccessToken> authenticateWithPemCertificate(java.lang.String tenantId, java.lang.String clientId, java.lang.String pemCertificatePath, java.lang.String[] scopes)
tenantId
- the tenant ID of the applicationclientId
- the client ID of the applicationpemCertificatePath
- the path to the PEM certificate of the applicationscopes
- the scopes to authenticate topublic reactor.core.publisher.Mono<AccessToken> authenticateToManagedIdentityEnpoint(java.lang.String msiEndpoint, java.lang.String msiSecret, java.lang.String clientId, java.lang.String[] scopes)
msiEndpoint
- the endpoint to acquire token frommsiSecret
- the secret to acquire token withclientId
- the client ID of the application servicescopes
- the scopes to authenticate topublic reactor.core.publisher.Mono<AccessToken> authenticateToIMDSEndpoint(java.lang.String clientId, java.lang.String[] scopes)
clientId
- the client ID of the virtual machinescopes
- the scopes to authenticate toCopyright © 2019 Microsoft Corporation. All rights reserved.