EmulatorValidation Class
- java.
lang. Object - com.
microsoft. bot. connector. authentication. EmulatorValidation
- com.
public final class EmulatorValidation
Validates and Examines JWT tokens from the Bot Framework Emulator.
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
java.util.concurrent.CompletableFuture<Claims |
authenticateToken(String authHeader, CredentialProvider credentials, ChannelProvider channelProvider, String channelId)
Validate the incoming Auth Header as a token sent from the Bot Framework Emulator. |
|
static
java.util.concurrent.CompletableFuture<Claims |
authenticateToken(String authHeader, CredentialProvider credentials, ChannelProvider channelProvider, String channelId, AuthenticationConfiguration authConfig)
Validate the incoming Auth Header as a token sent from the Bot Framework Emulator. |
|
static
Token |
getTokenValidationParameters()
TO BOT FROM EMULATOR. |
| static java.lang.Boolean |
isTokenFromEmulator(String authHeader)
Determines if a given Auth header is from the Bot Framework Emulator. |
Methods inherited from java.lang.Object
Method Details
authenticateToken
public static CompletableFuture
Validate the incoming Auth Header as a token sent from the Bot Framework Emulator. A token issued by the Bot Framework will FAIL this check. Only Emulator tokens will pass.
Parameters:
Returns:
On join:
authenticateToken
public static CompletableFuture
Validate the incoming Auth Header as a token sent from the Bot Framework Emulator. A token issued by the Bot Framework will FAIL this check. Only Emulator tokens will pass.
Parameters:
Returns:
On join:
getTokenValidationParameters
public static TokenValidationParameters getTokenValidationParameters()
TO BOT FROM EMULATOR.
Returns:
isTokenFromEmulator
public static Boolean isTokenFromEmulator(String authHeader)
Determines if a given Auth header is from the Bot Framework Emulator.
Parameters:
Returns: