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

com.microsoft.aad.msal4j.CacheTelemetry Maven / Gradle / Ivy

Go to download

Microsoft Authentication Library for Java gives you the ability to obtain tokens from Azure AD v2 (work and school accounts, MSA) and Azure AD B2C, gaining access to Microsoft Cloud API and any other API secured by Microsoft identities

There is a newer version: 1.17.1
Show newest version
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

package com.microsoft.aad.msal4j;

/**
 * Telemetry values covering the use of the cache in the library
 */
enum CacheTelemetry {
    /**
     * These values represent reasons why a token needed to be refreshed: either the flow does not use cached tokens (0),
     * the force refresh parameter was set (1), there was no cached access token (2), the cached access token expired (3),
     * or the cached token's refresh in time has passed (4)
     */
    REFRESH_CACHE_NOT_USED(0),
    REFRESH_FORCE_REFRESH(1),
    REFRESH_NO_ACCESS_TOKEN(2),
    REFRESH_ACCESS_TOKEN_EXPIRED(3),
    REFRESH_REFRESH_IN(4);

    final int telemetryValue;

    CacheTelemetry(int telemetryValue) {
        this.telemetryValue = telemetryValue;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy