Class RsaJWK.PrimesInfo

  • Enclosing class:
    RsaJWK

    public static class RsaJWK.PrimesInfo
    extends Object
    Holds the other prime factors.
    • Constructor Detail

      • PrimesInfo

        public PrimesInfo​(String primeFactor,
                          String crtExponent,
                          String crtCoefficient)
        Creates the other prime factors.
        Parameters:
        primeFactor - the prime factor
        crtExponent - the factor CRT Exponent
        crtCoefficient - 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