Class GenericRSAJWK.GenericOtherPrimeInfo

java.lang.Object
io.inverno.mod.security.jose.internal.jwk.rsa.GenericRSAJWK.GenericOtherPrimeInfo
All Implemented Interfaces:
RSAJWK.OtherPrimeInfo
Enclosing class:
GenericRSAJWK

public static class GenericRSAJWK.GenericOtherPrimeInfo extends Object implements RSAJWK.OtherPrimeInfo

Generic RSAJWK.OtherPrimeInfo implementation.

Since:
1.5
Author:
Jeremy Kuhn
  • Constructor Details

    • GenericOtherPrimeInfo

      public GenericOtherPrimeInfo(String r, String d, String t) throws JWKProcessingException

      Creates a generic other prime info.

      Parameters:
      r - the prime factor encoded as Base64URL without padding
      d - the factor CRT exponent encoded as Base64URL without padding
      t - the factor CRT coefficient encoded as Base64URL without padding
      Throws:
      JWKProcessingException - if one of the parameter is null
  • Method Details

    • getPrimeFactor

      public String getPrimeFactor()
      Description copied from interface: RSAJWK.OtherPrimeInfo

      Returns the other prime info prime factor encoded as Base64URL.

      Specified by:
      getPrimeFactor in interface RSAJWK.OtherPrimeInfo
      Returns:
      the Base64URL encoded other prime info prime factor with no padding.
    • getExponent

      public String getExponent()
      Description copied from interface: RSAJWK.OtherPrimeInfo

      Returns the other prime info exponent encoded as Base64URL.

      Specified by:
      getExponent in interface RSAJWK.OtherPrimeInfo
      Returns:
      the Base64URL encoded other prime info exponent with no padding.
    • getCoefficient

      public String getCoefficient()
      Description copied from interface: RSAJWK.OtherPrimeInfo

      Returns the other prime info coefficient encoded as Base64URL.

      Specified by:
      getCoefficient in interface RSAJWK.OtherPrimeInfo
      Returns:
      the Base64URL encoded other prime info coefficient with no padding.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object