EndorsementsValidator Class
- java.
lang. Object - com.
microsoft. bot. connector. authentication. EndorsementsValidator
- com.
public abstract class EndorsementsValidator
Verify that the specified endorsement exists on the JWT token.
Constructor Summary
| Constructor | Description | |
|---|---|---|
| EndorsementsValidator() | ||
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| static boolean |
validate(String expectedEndorsement, List<String> endorsements)
Verify that the specified endorsement exists on the JWT token. |
Methods inherited from java.lang.Object
Constructor Details
EndorsementsValidator
public EndorsementsValidator()
Method Details
validate
public static boolean validate(String expectedEndorsement, List
Verify that the specified endorsement exists on the JWT token. Call this method multiple times to validate multiple endorsements.
For example, if an Activity comes from WebChat, that activity's com.microsoft.bot.schema.Activity#getChannelId() property is set to "webchat" and the signing party of the JWT token must have a corresponding endorsement of \u201cWebchat\u201d.
Parameters:
Returns:
Throws: