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>
-
-
Constructor Summary
Constructors Constructor Description RSAKeyValueType()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RSAPrivateKey
convertToPrivateKey()
Convert to the JDK representation of a RSA Private KeyRSAPublicKey
convertToPublicKey()
Convert to the JDK representation of a RSA Public Keybyte[]
getExponent()
Gets the value of the exponent property.byte[]
getModulus()
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.String
toString()
-
-
-
Method Detail
-
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
-
-