Package org.forgerock.json.jose.jwk
Class RsaJWK.PrimesInfo
- java.lang.Object
-
- org.forgerock.json.jose.jwk.RsaJWK.PrimesInfo
-
-
Constructor Summary
Constructors Constructor Description PrimesInfo(String primeFactor, String crtExponent, String crtCoefficient)
Creates the other prime factors.PrimesInfo(RSAOtherPrimeInfo info)
Create other prime factors.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getCRTCoefficient()
Get the factor CRT Coefficient, noted as "t".String
getCRTExponent()
Get the factor CRT Exponent, noted as "d".String
getPrimeFactor()
Get the prime factor, noted as "r".static RsaJWK.PrimesInfo
parse(JsonValue json)
Parses a PrimesInfo from a jsonValue Object.JsonValue
toJsonValue()
Returns a json representation of the other factors.
-
-
-
Constructor Detail
-
PrimesInfo
public PrimesInfo(String primeFactor, String crtExponent, String crtCoefficient)
Creates the other prime factors.- Parameters:
primeFactor
- the prime factorcrtExponent
- the factor CRT ExponentcrtCoefficient
- the factor CRT Coefficient
-
PrimesInfo
public PrimesInfo(RSAOtherPrimeInfo info)
Create other prime factors.- Parameters:
info
- RSAOtherPrimeInfo used to create the other prime factors object.
-
-
Method Detail
-
getPrimeFactor
public String getPrimeFactor()
Get the prime factor, noted as "r".- Returns:
- the the prime factor value
-
getCRTExponent
public String getCRTExponent()
Get the factor CRT Exponent, noted as "d".- Returns:
- the the factor CRT Exponent value.
-
getCRTCoefficient
public String getCRTCoefficient()
Get the factor CRT Coefficient, noted as "t".- Returns:
- the factor CRT Coefficient value
-
toJsonValue
public JsonValue toJsonValue()
Returns a json representation of the other factors.- Returns:
- A JSON representation.
-
parse
public static RsaJWK.PrimesInfo parse(JsonValue json)
Parses a PrimesInfo from a jsonValue Object.- Parameters:
json
- a jsonValue object- Returns:
- a PrimesInfo
-
-