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
Provides content model support for the
dsig11:DEREncodedKeyvalue
element.-
Field Summary
Fields inherited from class org.apache.xml.security.utils.ElementProxy
baseURI, LOG
-
Constructor Summary
ConstructorsConstructorDescriptionDEREncodedKeyValue
(Document doc, byte[] encodedKey) Constructor DEREncodedKeyValueDEREncodedKeyValue
(Document doc, PublicKey publicKey) Constructor DEREncodedKeyValueDEREncodedKeyValue
(Element element, String baseURI) Constructor DEREncodedKeyValue -
Method Summary
Modifier and TypeMethodDescriptionReturns the localname of the Elements of the sub-class.protected byte[]
getEncodedDER
(PublicKey publicKey) Method getEncodedDERgetId()
Returns theId
attributeMethod getPublicKeyvoid
Sets theId
attributeMethods 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 Details
-
DEREncodedKeyValue
Constructor DEREncodedKeyValue- Parameters:
element
-baseURI
-- Throws:
XMLSecurityException
-
DEREncodedKeyValue
Constructor DEREncodedKeyValue- Parameters:
doc
-publicKey
-- Throws:
XMLSecurityException
-
DEREncodedKeyValue
Constructor DEREncodedKeyValue- Parameters:
doc
-encodedKey
-
-
-
Method Details
-
setId
Sets theId
attribute- Parameters:
id
- ID
-
getId
Returns theId
attribute- Returns:
- the
Id
attribute
-
getBaseLocalName
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
Method getPublicKey- Returns:
- the public key
- Throws:
XMLSecurityException
-
getEncodedDER
Method getEncodedDER- Returns:
- the public key
- Throws:
XMLSecurityException
-