Class EccTokenKey
- java.lang.Object
-
- com.azure.resourcemanager.videoanalyzer.models.TokenKey
-
- com.azure.resourcemanager.videoanalyzer.models.EccTokenKey
-
public final class EccTokenKey extends TokenKey
Required validation properties for tokens generated with Elliptical Curve algorithm.
-
-
Constructor Summary
Constructors Constructor Description EccTokenKey()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AccessPolicyEccAlgo
alg()
Get the alg property: Elliptical curve algorithm to be used: ES256, ES384 or ES512.void
validate()
Validates the instance.EccTokenKey
withAlg(AccessPolicyEccAlgo alg)
Set the alg property: Elliptical curve algorithm to be used: ES256, ES384 or ES512.EccTokenKey
withKid(String kid)
Set the kid property: JWT token key id.EccTokenKey
withX(String x)
Set the x property: X coordinate.EccTokenKey
withY(String y)
Set the y property: Y coordinate.String
x()
Get the x property: X coordinate.String
y()
Get the y property: Y coordinate.
-
-
-
Method Detail
-
alg
public AccessPolicyEccAlgo alg()
Get the alg property: Elliptical curve algorithm to be used: ES256, ES384 or ES512.- Returns:
- the alg value.
-
withAlg
public EccTokenKey withAlg(AccessPolicyEccAlgo alg)
Set the alg property: Elliptical curve algorithm to be used: ES256, ES384 or ES512.- Parameters:
alg
- the alg value to set.- Returns:
- the EccTokenKey object itself.
-
x
public String x()
Get the x property: X coordinate.- Returns:
- the x value.
-
withX
public EccTokenKey withX(String x)
Set the x property: X coordinate.- Parameters:
x
- the x value to set.- Returns:
- the EccTokenKey object itself.
-
y
public String y()
Get the y property: Y coordinate.- Returns:
- the y value.
-
withY
public EccTokenKey withY(String y)
Set the y property: Y coordinate.- Parameters:
y
- the y value to set.- Returns:
- the EccTokenKey object itself.
-
withKid
public EccTokenKey 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.
-
validate
public void validate()
Validates the instance.- Overrides:
validate
in classTokenKey
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-