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
- Author:
- $Author$
-
-
Field Summary
-
Fields inherited from class org.apache.xml.security.utils.ElementProxy
_baseURI, _constructionElement, _doc, _state, MODE_CREATE, MODE_DECRYPT, MODE_ENCRYPT, MODE_PROCESS, MODE_SIGN, MODE_UNKNOWN, MODE_VERIFY
-
-
Constructor Summary
Constructors Constructor Description RSAKeyValue(org.w3c.dom.Document doc, java.math.BigInteger modulus, java.math.BigInteger exponent)Constructor RSAKeyValueRSAKeyValue(org.w3c.dom.Document doc, java.security.Key key)Constructor RSAKeyValueRSAKeyValue(org.w3c.dom.Element element, java.lang.String BaseURI)Constructor RSAKeyValue
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetBaseLocalName()Returns the localname of the Elements of the sub-class.java.security.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, addText, addTextElement, createElementForFamily, getBaseURI, getBigIntegerFromChildElement, getBytesFromChildElement, getBytesFromTextChild, getDefaultPrefix, getDocument, getElement, getElementPlusReturns, getTextFromChildElement, getTextFromTextChild, guaranteeThatElementInCorrectSpace, length, setDefaultPrefix, setElement, setXPathNamespaceContext
-
-
-
-
Constructor Detail
-
RSAKeyValue
public RSAKeyValue(org.w3c.dom.Element element, java.lang.String BaseURI) throws XMLSecurityExceptionConstructor RSAKeyValue- Parameters:
element-BaseURI-- Throws:
XMLSecurityException
-
RSAKeyValue
public RSAKeyValue(org.w3c.dom.Document doc, java.math.BigInteger modulus, java.math.BigInteger exponent)Constructor RSAKeyValue- Parameters:
doc-modulus-exponent-
-
RSAKeyValue
public RSAKeyValue(org.w3c.dom.Document doc, java.security.Key key) throws java.lang.IllegalArgumentExceptionConstructor RSAKeyValue- Parameters:
doc-key-- Throws:
java.lang.IllegalArgumentException
-
-
Method Detail
-
getPublicKey
public java.security.PublicKey getPublicKey() throws XMLSecurityExceptionDescription copied from interface:KeyValueContentMethod getPublicKey- Specified by:
getPublicKeyin interfaceKeyValueContent- Returns:
- the public key
- Throws:
XMLSecurityException
-
getBaseLocalName
public java.lang.String getBaseLocalName()
Description copied from class:ElementProxyReturns the localname of the Elements of the sub-class.- Specified by:
getBaseLocalNamein classElementProxy- Returns:
- the localname of the Elements of the sub-class.
-
-