org.apache.xml.security.keys.content.keyvalues
Class RSAKeyValue

java.lang.Object
  extended byorg.apache.xml.security.utils.ElementProxy
      extended byorg.apache.xml.security.utils.SignatureElementProxy
          extended byorg.apache.xml.security.keys.content.keyvalues.RSAKeyValue
All Implemented Interfaces:
KeyValueContent

public class RSAKeyValue
extends SignatureElementProxy
implements KeyValueContent

Author:
$Author: mullan $

Field Summary
 
Fields inherited from class org.apache.xml.security.utils.ElementProxy
_baseURI, _constructionElement, _doc
 
Constructor Summary
RSAKeyValue(org.w3c.dom.Document doc, java.math.BigInteger modulus, java.math.BigInteger exponent)
          Constructor RSAKeyValue
RSAKeyValue(org.w3c.dom.Document doc, java.security.Key key)
          Constructor RSAKeyValue
RSAKeyValue(org.w3c.dom.Element element, java.lang.String BaseURI)
          Constructor RSAKeyValue
 
Method Summary
 java.lang.String getBaseLocalName()
          Returns the localname of the Elements of the sub-class.
 java.security.PublicKey getPublicKey()
          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, createElementForFamilyLocal, getBaseURI, getBigIntegerFromChildElement, getBytesFromChildElement, getBytesFromTextChild, getDefaultPrefix, getDefaultPrefixBindings, getDocument, getElement, getElementPlusReturns, getTextFromChildElement, getTextFromTextChild, length, setDefaultPrefix, setElement, setXPathNamespaceContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RSAKeyValue

public RSAKeyValue(org.w3c.dom.Element element,
                   java.lang.String BaseURI)
            throws XMLSecurityException
Constructor 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.IllegalArgumentException
Constructor RSAKeyValue

Parameters:
doc -
key -
Throws:
java.lang.IllegalArgumentException
Method Detail

getPublicKey

public java.security.PublicKey getPublicKey()
                                     throws XMLSecurityException
Description copied from interface: KeyValueContent
Method getPublicKey

Specified by:
getPublicKey in interface KeyValueContent
Returns:
the public key
Throws:
XMLSecurityException

getBaseLocalName

public java.lang.String getBaseLocalName()
Description copied from class: ElementProxy
Returns the localname of the Elements of the sub-class.

Specified by:
getBaseLocalName in class ElementProxy
Returns:
the localname of the Elements of the sub-class.