Search in sources :

Example 1 with API

use of com.microsoft.identity.common.adal.internal.AuthenticationConstants.BrokerContentProvider.API in project microsoft-authentication-library-common-for-android by AzureAD.

the class BrokerOperationBundle method getContentProviderPath.

public String getContentProviderPath() throws BrokerCommunicationException {
    final String methodName = ":getContentProviderUriPath";
    final API contentApi = operation.getContentApi();
    if (contentApi == null) {
        final String errorMessage = "Operation " + operation.name() + " is not supported by ContentProvider.";
        Logger.warn(TAG + methodName, errorMessage);
        throw new BrokerCommunicationException(OPERATION_NOT_SUPPORTED_ON_CLIENT_SIDE, CONTENT_PROVIDER, errorMessage, null);
    }
    return contentApi.getPath();
}
Also used : API(com.microsoft.identity.common.adal.internal.AuthenticationConstants.BrokerContentProvider.API) BrokerCommunicationException(com.microsoft.identity.common.exception.BrokerCommunicationException)

Aggregations

API (com.microsoft.identity.common.adal.internal.AuthenticationConstants.BrokerContentProvider.API)1 BrokerCommunicationException (com.microsoft.identity.common.exception.BrokerCommunicationException)1