SecurityToken Class
- java.
lang. Object - com.
microsoft. azure. eventhubs. SecurityToken
- com.
public class SecurityToken
A generic representation of a security token.
Constructor Summary
Constructor | Description |
---|---|
SecurityToken(String token, Date validTo, String audience, String tokenType) |
Constructor. |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
getAudience()
Get the audience of the token. |
String |
getToken()
Get the token itself. |
String |
getTokenType()
Get the type of the token. |
Date |
validTo()
Get the expiration date/time of the token. |
Methods inherited from java.lang.Object
Constructor Details
SecurityToken
public SecurityToken(String token, Date validTo, String audience, String tokenType)
Constructor.
Parameters:
token
- the actual token data
validTo
- expiration date/time of the token
audience
- audience of the token
tokenType
- type of the token
Method Details
getAudience
public String getAudience()
Get the audience of the token.
Returns:
audience
getToken
public String getToken()
Get the token itself.
Returns:
token
getTokenType
public String getTokenType()
Get the type of the token.
Returns:
token type
validTo
public Date validTo()
Get the expiration date/time of the token.
Returns:
expiration
Applies to
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
Azure SDK for Java