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>
Modifier and Type | Field and Description |
---|---|
protected byte[] |
exponent |
protected byte[] |
modulus |
Constructor and Description |
---|
RSAKeyValueType() |
Modifier and Type | Method and Description |
---|---|
RSAPrivateKey |
convertToPrivateKey()
Convert to the JDK representation of a RSA Private Key
|
RSAPublicKey |
convertToPublicKey()
Convert to the JDK representation of a RSA Public Key
|
byte[] |
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() |
public byte[] getModulus()
public void setModulus(byte[] value)
value
- allowed object is byte[]public byte[] getExponent()
public void setExponent(byte[] value)
value
- allowed object is byte[]public RSAPublicKey convertToPublicKey() throws ProcessingException
ProcessingException
public RSAPrivateKey convertToPrivateKey() throws ProcessingException
ProcessingException
Copyright © 2017 JBoss by Red Hat. All rights reserved.