Module org.apache.santuario.xmlsec
Class RSAKeyValue
- java.lang.Object
-
- org.apache.xml.security.utils.ElementProxy
-
- org.apache.xml.security.utils.SignatureElementProxy
-
- org.apache.xml.security.keys.content.keyvalues.RSAKeyValue
-
- All Implemented Interfaces:
KeyValueContent
public class RSAKeyValue extends SignatureElementProxy implements KeyValueContent
-
-
Field Summary
-
Fields inherited from class org.apache.xml.security.utils.ElementProxy
baseURI, LOG
-
-
Constructor Summary
Constructors Constructor Description RSAKeyValue(Document doc, BigInteger modulus, BigInteger exponent)Constructor RSAKeyValueRSAKeyValue(Document doc, Key key)Constructor RSAKeyValueRSAKeyValue(Element element, String baseURI)Constructor RSAKeyValue
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetBaseLocalName()Returns the localname of the Elements of the sub-class.PublicKeygetPublicKey()Method getPublicKey-
Methods inherited from class org.apache.xml.security.utils.SignatureElementProxy
getBaseNamespace
-
Methods inherited from class org.apache.xml.security.utils.ElementProxy
addBase64Element, addBase64Text, addBigIntegerElement, addReturnToSelf, addText, addTextElement, appendOther, appendSelf, appendSelf, createElementForFamily, createElementForFamilyLocal, createText, getBaseURI, getBigIntegerFromChildElement, getBytesFromTextChild, getDefaultPrefix, getDocument, getElement, getElementPlusReturns, getFirstChild, getLocalAttribute, getTextFromChildElement, getTextFromTextChild, length, registerDefaultPrefixes, setDefaultPrefix, setDocument, setElement, setElement, setLocalAttribute, setLocalIdAttribute, setXPathNamespaceContext
-
-
-
-
Constructor Detail
-
RSAKeyValue
public RSAKeyValue(Element element, String baseURI) throws XMLSecurityException
Constructor RSAKeyValue- Parameters:
element-baseURI-- Throws:
XMLSecurityException
-
RSAKeyValue
public RSAKeyValue(Document doc, BigInteger modulus, BigInteger exponent)
Constructor RSAKeyValue- Parameters:
doc-modulus-exponent-
-
RSAKeyValue
public RSAKeyValue(Document doc, Key key) throws IllegalArgumentException
Constructor RSAKeyValue- Parameters:
doc-key-- Throws:
IllegalArgumentException
-
-
Method Detail
-
getPublicKey
public PublicKey getPublicKey() throws XMLSecurityException
Method getPublicKey- Specified by:
getPublicKeyin interfaceKeyValueContent- Returns:
- the public key
- Throws:
XMLSecurityException
-
getBaseLocalName
public String getBaseLocalName()
Returns the localname of the Elements of the sub-class.- Specified by:
getBaseLocalNamein classElementProxy- Returns:
- the localname of the Elements of the sub-class.
-
-