Class RSAKeyValueType

java.lang.Object
org.keycloak.dom.xmlsec.w3.xmldsig.RSAKeyValueType
All Implemented Interfaces:
KeyValueType

public class RSAKeyValueType extends Object implements KeyValueType

Java class for RSAKeyValueType complex type.

The following schema fragment specifies the expected content contained within this class.

 <complexType name="RSAKeyValueType">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element name="Modulus" type="{http://www.w3.org/2000/09/xmldsig#}CryptoBinary"/>
         <element name="Exponent" type="{http://www.w3.org/2000/09/xmldsig#}CryptoBinary"/>
       </sequence>
     </restriction>
   </complexContent>
 </complexType>
 
  • Field Details

    • modulus

      protected byte[] modulus
    • exponent

      protected byte[] exponent
  • Constructor Details

    • RSAKeyValueType

      public RSAKeyValueType()
  • Method Details

    • getModulus

      public byte[] getModulus()
      Gets the value of the modulus property.
      Returns:
      possible object is byte[]
    • setModulus

      public void setModulus(byte[] value)
      Sets the value of the modulus property.
      Parameters:
      value - allowed object is byte[]
    • getExponent

      public byte[] getExponent()
      Gets the value of the exponent property.
      Returns:
      possible object is byte[]
    • setExponent

      public void setExponent(byte[] value)
      Sets the value of the exponent property.
      Parameters:
      value - allowed object is byte[]
    • convertToPublicKey

      public RSAPublicKey convertToPublicKey() throws ProcessingException
      Convert to the JDK representation of a RSA Public Key
      Returns:
      Throws:
      ProcessingException
    • convertToPrivateKey

      public RSAPrivateKey convertToPrivateKey() throws ProcessingException
      Convert to the JDK representation of a RSA Private Key
      Returns:
      Throws:
      ProcessingException
    • toString

      public String toString()
      Overrides:
      toString in class Object