public class AzureAdTokenCredentials extends Object
| Constructor and Description |
|---|
AzureAdTokenCredentials(String tenant,
com.microsoft.aad.adal4j.AsymmetricKeyCredential asymmetricKeyCredential,
AzureEnvironment azureEnvironment) |
AzureAdTokenCredentials(String tenant,
AzureAdClientSymmetricKey azureAdClientSymmetricKey,
AzureEnvironment azureEnvironment)
Initializes a new instance of the AzureAdTokenCredentials class.
|
AzureAdTokenCredentials(String tenant,
AzureAdClientUsernamePassword azureAdClientUsernamePassword,
AzureEnvironment azureEnvironment)
Initializes a new instance of the AzureAdTokenCredentials class.
|
AzureAdTokenCredentials(String tenant,
AzureEnvironment azureEnvironment)
Initializes a new instance of the AzureAdTokenCredentials class.
|
| Modifier and Type | Method and Description |
|---|---|
com.microsoft.aad.adal4j.AsymmetricKeyCredential |
getAsymmetricKeyCredential()
Gets the AsymmetricKeyCredential
|
AzureAdClientUsernamePassword |
getAzureAdClientUsernamePassword()
Gets the client username password
|
AzureEnvironment |
getAzureEnvironment()
Gets the environment.
|
com.microsoft.aad.adal4j.ClientCredential |
getClientKey()
Gets the client symmetric key credential.
|
AzureAdTokenCredentialType |
getCredentialType()
Gets the credential type.
|
String |
getTenant()
Gets the tenant.
|
public AzureAdTokenCredentials(String tenant, AzureAdClientUsernamePassword azureAdClientUsernamePassword, AzureEnvironment azureEnvironment)
tenant - The tenantazureAdClientUsernamePassword - the user credentialsazureEnvironment - The environmentpublic AzureAdTokenCredentials(String tenant, AzureEnvironment azureEnvironment)
tenant - The tenantazureEnvironment - The environmentpublic AzureAdTokenCredentials(String tenant, AzureAdClientSymmetricKey azureAdClientSymmetricKey, AzureEnvironment azureEnvironment)
tenant - The tenantazureAdClientSymmetricKey - an instance of AzureAdClientSymmetricKeyazureEnvironment - The environmentpublic AzureAdTokenCredentials(String tenant, com.microsoft.aad.adal4j.AsymmetricKeyCredential asymmetricKeyCredential, AzureEnvironment azureEnvironment)
public String getTenant()
public AzureAdClientUsernamePassword getAzureAdClientUsernamePassword()
public com.microsoft.aad.adal4j.ClientCredential getClientKey()
public com.microsoft.aad.adal4j.AsymmetricKeyCredential getAsymmetricKeyCredential()
public AzureAdTokenCredentialType getCredentialType()
public AzureEnvironment getAzureEnvironment()
/**
* Copyright Microsoft Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/