Class TokenKey
- java.lang.Object
-
- com.azure.resourcemanager.videoanalyzer.models.TokenKey
-
- Direct Known Subclasses:
EccTokenKey
,RsaTokenKey
public class TokenKey extends Object
Key properties for JWT token validation.
-
-
Constructor Summary
Constructors Constructor Description TokenKey()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
kid()
Get the kid property: JWT token key id.void
validate()
Validates the instance.TokenKey
withKid(String kid)
Set the kid property: JWT token key id.
-
-
-
Method Detail
-
kid
public String kid()
Get the kid property: JWT token key id. Validation keys are looked up based on the key id present on the JWT token header.- Returns:
- the kid value.
-
withKid
public TokenKey withKid(String kid)
Set the kid property: JWT token key id. Validation keys are looked up based on the key id present on the JWT token header.- Parameters:
kid
- the kid value to set.- Returns:
- the TokenKey object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-