public class RSAKeyValue extends BaseElement implements KeyValueElement
Type="http://www.w3.org/2000/09/xmldsig#RSAKeyValue"
(this can be used within a RetrievalMethod or
Reference element to identify the referent's type)RSA key values have two fields: Modulus and Exponent.
<RSAKeyValue>
<Modulus>xA7SEU+e0yQH5rm9kbCDN9o3aPIo7HbP7tX6WOocLZAtNfyxSZDU16ksL6W
jubafOqNEpcwR3RdFsT7bCqnXPBe5ELh5u4VEy19MzxkXRgrMvavzyBpVRgBUwUlV
5foK5hhmbktQhyNdy/6LpQRhDUDsTvK+g9Ucj47es9AQJ3U=
</Modulus>
<Exponent>AQAB</Exponent>
</RSAKeyValue>
Arbitrary-length integers (e.g. "bignums" such as RSA moduli) are
represented in XML as octet strings as defined by the
ds:CryptoBinary 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>
mContext, mElement, mId| Constructor and Description |
|---|
RSAKeyValue(Context aBaglam,
java.security.interfaces.RSAPublicKey aKey) |
RSAKeyValue(org.w3c.dom.Element aElement,
Context aContext)
Construct RSAKeyValue from existing
|
| Modifier and Type | Method and Description |
|---|---|
java.math.BigInteger |
getExponent() |
java.lang.String |
getLocalName() |
java.math.BigInteger |
getModulus() |
java.security.PublicKey |
getPublicKey() |
addBigIntegerElement, addLineBreak, addLineBreak, checkNamespace, createElement, generateAndSetId, getAttribute, getBigIntegerFromElement, getChildText, getContext, getDocument, getElement, getId, getNamespace, insertBase64EncodedElement, insertElement, insertTextElement, selectChildElement, selectChildren, setIdpublic RSAKeyValue(Context aBaglam, java.security.interfaces.RSAPublicKey aKey) throws XMLSignatureException
XMLSignatureExceptionpublic RSAKeyValue(org.w3c.dom.Element aElement,
Context aContext)
throws XMLSignatureException
aElement - xml elementaContext - according to contextXMLSignatureException - when structure is invalid or can not be
resolved appropriatelypublic java.security.PublicKey getPublicKey()
throws XMLSignatureException
getPublicKey in interface KeyValueElementXMLSignatureExceptionpublic java.math.BigInteger getModulus()
public java.math.BigInteger getExponent()
public java.lang.String getLocalName()
getLocalName in class BaseElementCopyright © 2025. All rights reserved.