Module org.apache.santuario.xmlsec
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:DEREncodedKeyvalueelement.
-
-
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 StringgetBaseLocalName()Returns the localname of the Elements of the sub-class.protected byte[]getEncodedDER(PublicKey publicKey)Method getEncodedDERStringgetId()Returns theIdattributePublicKeygetPublicKey()Method getPublicKeyvoidsetId(String id)Sets theIdattribute-
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 theIdattribute- Parameters:
id- ID
-
getId
public String getId()
Returns theIdattribute- Returns:
- the
Idattribute
-
getBaseLocalName
public String getBaseLocalName()
Returns the localname of the Elements of the sub-class.- Specified by:
getBaseLocalNamein 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
-
-