All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.microsoft.azure.keyvault.authentication.AuthenticationResult Maven / Gradle / Ivy

Go to download

This library has been replaced by new Azure SDKs, you can read about them at https://aka.ms/azsdkvalueprop. The latest libraries to interact with the Azure Key Vault service are: (1) https://search.maven.org/artifact/com.azure/azure-security-keyvault-keys. (2) https://search.maven.org/artifact/com.azure/azure-security-keyvault-secrets. (3) https://search.maven.org/artifact/com.azure/azure-security-keyvault-certificates. It is recommended that you move to the new package.

There is a newer version: 1.2.6
Show newest version
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.microsoft.azure.keyvault.authentication;

/**
 * Stores authentication token and client key used for proof of possession
 * authentication.
 */
public class AuthenticationResult {
    private String authToken;
    private String popKey;

    /**
     * Constructor.
     *
     * @param authToken
     *            authentication token string.
     * @param popKey
     *            serialized json web key used for pop authentication.
     */
    public AuthenticationResult(String authToken, String popKey) {
        this.authToken = authToken;
        this.popKey = popKey;
    }

    /**
     * Retrieve stored authentication token.
     *
     * @return authentication token.
     */
    public String getAuthToken() {
        return authToken;
    }

    /**
     * Retrieve stored PoP key.
     *
     * @return proof of possession key.
     */
    public String getPopKey() {
        return popKey;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy