Interface RSAJWKBuilder<A extends RSAJWK,B extends RSAJWKBuilder<A,B>>

Type Parameters:
A - the RSA JWK type
B - the RSA JWK builder type
All Superinterfaces:
JWKBuilder<A,B>, X509JWKBuilder<RSAPublicKey,RSAPrivateKey,A,B>

public interface RSAJWKBuilder<A extends RSAJWK,B extends RSAJWKBuilder<A,B>> extends X509JWKBuilder<RSAPublicKey,RSAPrivateKey,A,B>

RSA JSON Web Key builder.

Since:
1.5
Author:
Jeremy Kuhn
  • Method Details

    • modulus

      B modulus(String n)

      Specifies the modulus encoded as Base64URL.

      Parameters:
      n - the Base64URL encoded modulus with no padding
      Returns:
      this builder
    • publicExponent

      B publicExponent(String e)

      Specifies the public exponent encoded as Base64URL.

      Parameters:
      e - the Base64URL encoded public exponent with no padding
      Returns:
      this builder
    • privateExponent

      B privateExponent(String d)

      Specifies the private exponent encoded as Base64URL.

      Parameters:
      d - the Base64URL encoded private exponent with no padding
      Returns:
      this builder
    • firstPrimeFactor

      B firstPrimeFactor(String p)

      Specifies the first prime factor encoded as Base64URL.

      Parameters:
      p - the Base64URL encoded first prime factor with no padding
      Returns:
      this builder
    • secondPrimeFactor

      B secondPrimeFactor(String q)

      Specifies the second prime factor encoded as Base64URL.

      Parameters:
      q - the Base64URL encoded second prime factor with no padding
      Returns:
      this builder
    • firstFactorExponent

      B firstFactorExponent(String dp)

      Specifies the first factor exponent encoded as Base64URL.

      Parameters:
      dp - the Base64URL encoded first factor exponent with no padding
      Returns:
      this builder
    • secondFactorExponent

      B secondFactorExponent(String dq)

      Specifies the second factor exponent encoded as Base64URL.

      Parameters:
      dq - the Base64URL encoded second factor exponent with no padding
      Returns:
      this builder
    • firstCoefficient

      B firstCoefficient(String qi)

      Specifies the first coefficient encoded as Base64URL.

      Parameters:
      qi - the Base64URL encoded first coefficient with no padding
      Returns:
      this builder
    • otherPrimeInfo

      B otherPrimeInfo(String primeFactor, String exponent, String coefficient)

      Specifies a prime info to add to the definition of the key.

      Parameters:
      primeFactor - the Base64URL encoded other prime info prime factor with no padding
      exponent - the Base64URL encoded other prime info exponent with no padding
      coefficient - the Base64URL encoded other prime info coefficient with no padding
      Returns:
      this builder