BasePartnerCredentials Class
- java.
lang. Object - com.
microsoft. store. partnercenter. extensions. BasePartnerCredentials
- com.
Implements
public abstract class BasePartnerCredentials implements IPartnerCredentials
A base implementation for partner credentials.
Constructor Summary
| Constructor | Description |
|---|---|
| BasePartnerCredentials(String clientId) |
Initializes a new instance of the Base |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| void |
authenticate()
Authenticates with the partner service. |
| void |
authenticate(IRequestContext requestContext)
Authenticates with the partner service. |
|
protected
Authentication |
getAADToken()
Gets the Azure Active Directory token. |
| protected java.lang.String |
getClientId()
Gets the Azure Active Directory client identifier. |
| org.joda.time.DateTime |
getExpiresAt()
Gets the expiry time in UTC for the token. |
| java.lang.String |
getPartnerServiceToken()
Gets the partner service token. |
| boolean |
isExpired()
Indicates whether the partner credentials have expired or not. |
| protected void |
setAADToken(AuthenticationToken value)
Sets the Azure Active Directory token. |
| protected void |
setClientId(String value)
Sets the Azure Active Directory client identifier. |
Inherited Members
Constructor Details
BasePartnerCredentials
public BasePartnerCredentials(String clientId)
Initializes a new instance of the BasePartnerCredentials class.
Parameters:
Method Details
authenticate
public void authenticate()
Authenticates with the partner service.
authenticate
public void authenticate(IRequestContext requestContext)
Authenticates with the partner service.
Parameters:
getAADToken
protected AuthenticationToken getAADToken()
Gets the Azure Active Directory token.
Returns:
getClientId
protected String getClientId()
Gets the Azure Active Directory client identifier.
Returns:
getExpiresAt
public DateTime getExpiresAt()
Gets the expiry time in UTC for the token.
getPartnerServiceToken
public String getPartnerServiceToken()
Gets the partner service token.
Returns:
isExpired
public boolean isExpired()
Indicates whether the partner credentials have expired or not.
Returns:
setAADToken
protected void setAADToken(AuthenticationToken value)
Sets the Azure Active Directory token.
Parameters:
setClientId
protected void setClientId(String value)
Sets the Azure Active Directory client identifier.
Parameters: