Class PartnerCredentials

java.lang.Object
com.microsoft.store.partnercenter.extensions.PartnerCredentials

public class PartnerCredentials
extends Object
The third party partner credentials. Use to generate the credentials.
  • Method Details

    • getInstance

      public static PartnerCredentials getInstance()
      Gets an instance of the partner credentials.
      Returns:
      An instance of the partner credentials.
    • generateByApplicationCredentials

      public IPartnerCredentials generateByApplicationCredentials​(String clientId, String applicationSecret, String aadApplicationDomain)
      Generates partner credentials for third party applications using application credentials.
      Parameters:
      clientId - The client id of the application in Azure Active Directory.
      applicationSecret - The application secret with Azure Active Directory.
      aadApplicationDomain - The application domain in Azure Active Directory.
      Returns:
      The partner service credentials.
    • generateByApplicationCredentials

      public IPartnerCredentials generateByApplicationCredentials​(String clientId, String applicationSecret, String aadApplicationDomain, IRequestContext requestContext)
      Generates partner credentials for third party applications using application credentials.
      Parameters:
      clientId - The client id of the application in Azure Active Directory.
      applicationSecret - The application secret with Azure Active Directory.
      aadApplicationDomain - The application domain in Azure Active Directory.
      requestContext - The request context.
      Returns:
      The partner service credentials.
    • generateByUserCredentials

      public IPartnerCredentials generateByUserCredentials​(String clientId, AuthenticationToken authenticationToken, IAadLoginHandler loginHandler)
      Generates partner credentials for third party applications using a user Azure Active Directory token.
      Parameters:
      clientId - The client id of the application in Azure Active Directory.
      authenticationToken - The Azure Active Directory token.
      loginHandler - An optional delegate which will be called when the Azure Active Directory token expires and can no longer be used to generate the partner credentials. This delegate should return an up to date Azure Active Directory token.
      Returns:
      The partner service credentials.
    • generateByApplicationCredentials

      public IPartnerCredentials generateByApplicationCredentials​(String clientId, String applicationSecret, String aadApplicationDomain, String aadAuthorityEndpoint, String graphEndpoint)
      Generates partner credentials for third party applications using application credentials with the provided AAD overrides.
      Parameters:
      clientId - The client id of the application in Azure Active Directory.
      applicationSecret - The application secret with Azure Active Directory.
      aadApplicationDomain - The application domain in Azure Active Directory.
      aadAuthorityEndpoint - The active directory authority endpoint.
      graphEndpoint - The AAD graph API endpoint.
      Returns:
      The partner service credentials.
    • generateByApplicationCredentials

      public IPartnerCredentials generateByApplicationCredentials​(String clientId, String applicationSecret, String aadApplicationDomain, String aadAuthorityEndpoint, String graphEndpoint, IRequestContext requestContext)