UserAssertion Class
- java.
lang. Object - com.
microsoft. aad. msal4j. UserAssertion
- com.
Implements
public class UserAssertion
implements IUserAssertion
Credential type containing an assertion representing a delegated user identity. Used as a parameter in OnBehalfOfParameters
Constructor Summary
| Constructor | Description |
|---|---|
| UserAssertion(String assertion) |
Constructor to create credential with a jwt token encoded as a base64 url encoded string. |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| java.lang.String |
getAssertion()
Gets the assertion. |
| java.lang.String |
getAssertionHash()
Gets a hash of the assertion token. |
Methods inherited from java.lang.Object
Constructor Details
UserAssertion
public UserAssertion(String assertion)
Constructor to create credential with a jwt token encoded as a base64 url encoded string.
Parameters:
Method Details
getAssertion
public String getAssertion()
Gets the assertion.
Returns:
getAssertionHash
public String getAssertionHash()
Gets a hash of the assertion token.
This hash is used as a key for caching tokens acquired via the On-Behalf-Of flow, allowing the application to efficiently retrieve tokens for the same user assertion without making redundant requests to the token service.
Returns: