SecurityToken Class
- java.
lang. Object - com.
microsoft. azure. servicebus. security. SecurityToken
- com.
public class SecurityToken
This class encapsulates the details of a security token.
Constructor Summary
Constructor | Description |
---|---|
SecurityToken(SecurityTokenType tokenType, String tokenAudience, String tokenValue, Instant validFrom, Instant validUntil) |
Creates an instance of security token. |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
getTokenAudience()
Gets the path of the entity for which this token is to be presented. |
Security |
getTokenType()
Gets the type of this security token. |
String |
getTokenValue()
Gets the value of this token. |
Instant |
getValidFrom()
Gets the start time of this token validity |
Instant |
getValidUntil()
Gets the end time of this token validity. |
Constructor Details
SecurityToken
public SecurityToken(SecurityTokenType tokenType, String tokenAudience, String tokenValue, Instant validFrom, Instant validUntil)
Creates an instance of security token.
Parameters:
Method Details
getTokenAudience
public String getTokenAudience()
Gets the path of the entity for which this token is to be presented.
Returns:
getTokenType
public SecurityTokenType getTokenType()
Gets the type of this security token.
Returns:
getTokenValue
public String getTokenValue()
Gets the value of this token.
Returns:
getValidFrom
public Instant getValidFrom()
Gets the start time of this token validity
Returns:
getValidUntil
public Instant getValidUntil()
Gets the end time of this token validity.
Returns:
Applies to
Azure SDK for Java