Package com.microsoft.azure.eventhubs
Class SecurityToken
- java.lang.Object
-
- com.microsoft.azure.eventhubs.SecurityToken
-
- Direct Known Subclasses:
JsonSecurityToken
public class SecurityToken extends Object
A generic representation of a security token.
-
-
Constructor Summary
Constructors Constructor Description SecurityToken(String token, Date validTo, String audience, String tokenType)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAudience()Get the audience of the token.StringgetToken()Get the token itself.StringgetTokenType()Get the type of the token.DatevalidTo()Get the expiration date/time of the token.
-
-
-
Method Detail
-
getTokenType
public String getTokenType()
Get the type of the token.- Returns:
- token type
-
getToken
public String getToken()
Get the token itself.- Returns:
- token
-
validTo
public Date validTo()
Get the expiration date/time of the token.- Returns:
- expiration
-
getAudience
public String getAudience()
Get the audience of the token.- Returns:
- audience
-
-