org.apache.xml.security.keys.content
Class DEREncodedKeyValue

java.lang.Object
  extended by org.apache.xml.security.utils.ElementProxy
      extended by org.apache.xml.security.utils.Signature11ElementProxy
          extended by org.apache.xml.security.keys.content.DEREncodedKeyValue
All Implemented Interfaces:
KeyInfoContent

public class DEREncodedKeyValue
extends Signature11ElementProxy
implements KeyInfoContent

Provides content model support for the dsig11:DEREncodedKeyvalue element.

Author:
Brent Putman (putmanb@georgetown.edu)

Field Summary
 
Fields inherited from class org.apache.xml.security.utils.ElementProxy
baseURI, log
 
Constructor Summary
DEREncodedKeyValue(Document doc, byte[] encodedKey)
          Constructor DEREncodedKeyValue
DEREncodedKeyValue(Document doc, PublicKey publicKey)
          Constructor DEREncodedKeyValue
DEREncodedKeyValue(Element element, String BaseURI)
          Constructor DEREncodedKeyValue
 
Method Summary
 String getBaseLocalName()
          Returns the localname of the Elements of the sub-class.
protected  byte[] getEncodedDER(PublicKey publicKey)
          Method getEncodedDER
 String getId()
          Returns the Id attribute
 PublicKey getPublicKey()
          Method getPublicKey
 void setId(String id)
          Sets the Id attribute
 
Methods inherited from class org.apache.xml.security.utils.Signature11ElementProxy
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DEREncodedKeyValue

public DEREncodedKeyValue(Element element,
                          String BaseURI)
                   throws XMLSecurityException
Constructor DEREncodedKeyValue

Parameters:
element -
BaseURI -
Throws:
XMLSecurityException

DEREncodedKeyValue

public DEREncodedKeyValue(Document doc,
                          PublicKey publicKey)
                   throws XMLSecurityException
Constructor DEREncodedKeyValue

Parameters:
doc -
publicKey -
Throws:
XMLSecurityException

DEREncodedKeyValue

public DEREncodedKeyValue(Document doc,
                          byte[] encodedKey)
Constructor DEREncodedKeyValue

Parameters:
doc -
encodedKey -
Method Detail

setId

public void setId(String id)
Sets the Id attribute

Parameters:
id - ID

getId

public String getId()
Returns the Id attribute

Returns:
the Id attribute

getBaseLocalName

public 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.

getPublicKey

public PublicKey getPublicKey()
                       throws XMLSecurityException
Method getPublicKey

Returns:
the public key
Throws:
XMLSecurityException

getEncodedDER

protected byte[] getEncodedDER(PublicKey publicKey)
                        throws XMLSecurityException
Method getEncodedDER

Returns:
the public key
Throws:
XMLSecurityException


Copyright © 2000–2014 The Apache Software Foundation. All rights reserved.