Class DEREncodedKeyValue
- java.lang.Object
-
- org.apache.xml.security.utils.ElementProxy
-
- org.apache.xml.security.utils.Signature11ElementProxy
-
- org.apache.xml.security.keys.content.DEREncodedKeyValue
-
- All Implemented Interfaces:
KeyInfoContent
public class DEREncodedKeyValue extends Signature11ElementProxy implements KeyInfoContent
Provides content model support for thedsig11:DEREncodedKeyvalue
element.- Author:
- Brent Putman (putmanb@georgetown.edu)
-
-
Field Summary
-
Fields inherited from class org.apache.xml.security.utils.ElementProxy
baseURI, log
-
-
Constructor Summary
Constructors Constructor Description DEREncodedKeyValue(Document doc, byte[] encodedKey)
Constructor DEREncodedKeyValueDEREncodedKeyValue(Document doc, PublicKey publicKey)
Constructor DEREncodedKeyValueDEREncodedKeyValue(Element element, String baseURI)
Constructor DEREncodedKeyValue
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getBaseLocalName()
Returns the localname of the Elements of the sub-class.protected byte[]
getEncodedDER(PublicKey publicKey)
Method getEncodedDERString
getId()
Returns theId
attributePublicKey
getPublicKey()
Method getPublicKeyvoid
setId(String id)
Sets theId
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
-
-
-
-
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 theId
attribute- Parameters:
id
- ID
-
getId
public String getId()
Returns theId
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 classElementProxy
- 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
-
-