com.microsoft.aad.msal4j.MsalThrottlingException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of msal4j Show documentation
Show all versions of msal4j Show documentation
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
// Generated by delombok at Fri Jul 26 21:46:44 UTC 2024
package com.microsoft.aad.msal4j;
/**
* Exception type thrown when service returns throttling instruction:
* Retry-After header, 429 or 5xx statuses.
*/
public class MsalThrottlingException extends MsalServiceException {
/**
* how long to wait before repeating request
*/
private long retryInMs;
/**
* Constructor for MsalThrottlingException class
*
* @param retryInMs
*/
public MsalThrottlingException(long retryInMs) {
super("Request was throttled according to instructions from STS. Retry in " + retryInMs + " ms.", AuthenticationErrorCode.THROTTLED_REQUEST);
this.retryInMs = retryInMs;
}
/**
* how long to wait before repeating request
*/
@java.lang.SuppressWarnings("all")
public long retryInMs() {
return this.retryInMs;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy