Class RSAKeyValueType
java.lang.Object
org.keycloak.dom.xmlsec.w3.xmldsig.RSAKeyValueType
- All Implemented Interfaces:
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 Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionConvert to the JDK representation of a RSA Private KeyConvert to the JDK representation of a RSA Public Keybyte[]
Gets the value of the exponent property.byte[]
Gets the value of the modulus property.void
setExponent
(byte[] value) Sets the value of the exponent property.void
setModulus
(byte[] value) Sets the value of the modulus property.toString()
-
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
Convert to the JDK representation of a RSA Public Key- Returns:
- Throws:
ProcessingException
-
convertToPrivateKey
Convert to the JDK representation of a RSA Private Key- Returns:
- Throws:
ProcessingException
-
toString
-