Package com.microsoft.azure.eventhubs
Class JsonSecurityToken
- java.lang.Object
-
- com.microsoft.azure.eventhubs.SecurityToken
-
- com.microsoft.azure.eventhubs.JsonSecurityToken
-
public class JsonSecurityToken extends SecurityToken
Extend SecurityToken with some specifics for a JSon Web Token
-
-
Constructor Summary
Constructors Constructor Description JsonSecurityToken(String rawToken, String audience)
Construct from a raw JWT.
-
-
-
Constructor Detail
-
JsonSecurityToken
public JsonSecurityToken(String rawToken, String audience) throws ParseException
Construct from a raw JWT.- Parameters:
rawToken
- the JWT token dataaudience
- audience of the token- Throws:
ParseException
- if the token cannot be parsed
-
-