public class SecurityToken extends Object
Constructor and Description |
---|
SecurityToken(SecurityTokenType tokenType,
String tokenAudience,
String tokenValue,
Instant validFrom,
Instant validUntil)
Creates an instance of security token.
|
Modifier and Type | Method and Description |
---|---|
String |
getTokenAudience()
Gets the path of the entity for which this token is to be presented.
|
SecurityTokenType |
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.
|
public SecurityToken(SecurityTokenType tokenType, String tokenAudience, String tokenValue, Instant validFrom, Instant validUntil)
tokenType
- SecurityTokenType
tokenAudience
- path of the entity for which this security token is to be presentedtokenValue
- string representation of the token valuevalidFrom
- Instant from when this token is validvalidUntil
- Instant when this token expirespublic SecurityTokenType getTokenType()
public String getTokenAudience()
public String getTokenValue()
public Instant getValidFrom()
public Instant getValidUntil()
Copyright © 2019 Microsoft Corporation. All rights reserved.