com.azure.core.credential.AzureNamedKey Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-core Show documentation
Show all versions of azure-core Show documentation
This package contains core types for Azure Java clients.
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.azure.core.credential;
import com.azure.core.annotation.Immutable;
/**
* Represents a credential bag containing the key and the name of the key.
*
* @see AzureNamedKeyCredential
*/
@Immutable
public final class AzureNamedKey {
private final String name;
private final String key;
AzureNamedKey(String name, String key) {
this.name = name;
this.key = key;
}
/**
* Retrieves the key.
*
* @return The key.
*/
public String getKey() {
return key;
}
/**
* Retrieves the name associated with the key.
*
* @return The name of the key.
*/
public String getName() {
return name;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy