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 AccessPolicyEccAlgoalg()Get the alg property: Elliptical curve algorithm to be used: ES256, ES384 or ES512.voidvalidate()Validates the instance.EccTokenKeywithAlg(AccessPolicyEccAlgo alg)Set the alg property: Elliptical curve algorithm to be used: ES256, ES384 or ES512.EccTokenKeywithKid(String kid)Set the kid property: JWT token key id.EccTokenKeywithX(String x)Set the x property: X coordinate.EccTokenKeywithY(String y)Set the y property: Y coordinate.Stringx()Get the x property: X coordinate.Stringy()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:
validatein classTokenKey- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-