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

com.microsoft.azure.documentdb.internal.AuthorizationTokenProvider Maven / Gradle / Ivy

package com.microsoft.azure.documentdb.internal;

import java.util.Map;

/**
 * Represents types that can provide functionality to generate authorization token for the Azure Cosmos DB database
 * service.
 */
public interface AuthorizationTokenProvider {
    String generateKeyAuthorizationSignature(String verb,
                                             String resourceIdOrFullName,
                                             ResourceType resourceType,
                                             Map headers);

    String getAuthorizationTokenUsingResourceTokens(String path,
                                                    String resourceId);
    
    String getMasterKey();
    
    Map getResourceTokens();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy