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 Modifier and Type Field Description private static java.lang.String[]supportedKeyTypesJCA algorithm key types supported by this implementation.-
Fields inherited from class org.apache.xml.security.utils.ElementProxy
baseURI, LOG
-
-
Constructor Summary
Constructors Constructor Description DEREncodedKeyValue(org.w3c.dom.Document doc, byte[] encodedKey)Constructor DEREncodedKeyValueDEREncodedKeyValue(org.w3c.dom.Document doc, java.security.PublicKey publicKey)Constructor DEREncodedKeyValueDEREncodedKeyValue(org.w3c.dom.Element element, java.lang.String baseURI)Constructor DEREncodedKeyValue
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetBaseLocalName()Returns the localname of the Elements of the sub-class.protected byte[]getEncodedDER(java.security.PublicKey publicKey)Method getEncodedDERjava.lang.StringgetId()Returns theIdattributejava.security.PublicKeygetPublicKey()Method getPublicKeyvoidsetId(java.lang.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(org.w3c.dom.Element element, java.lang.String baseURI) throws XMLSecurityExceptionConstructor DEREncodedKeyValue- Parameters:
element-baseURI-- Throws:
XMLSecurityException
-
DEREncodedKeyValue
public DEREncodedKeyValue(org.w3c.dom.Document doc, java.security.PublicKey publicKey) throws XMLSecurityExceptionConstructor DEREncodedKeyValue- Parameters:
doc-publicKey-- Throws:
XMLSecurityException
-
DEREncodedKeyValue
public DEREncodedKeyValue(org.w3c.dom.Document doc, byte[] encodedKey)Constructor DEREncodedKeyValue- Parameters:
doc-encodedKey-
-
-
Method Detail
-
setId
public void setId(java.lang.String id)
Sets theIdattribute- Parameters:
id- ID
-
getId
public java.lang.String getId()
Returns theIdattribute- Returns:
- the
Idattribute
-
getBaseLocalName
public java.lang.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 java.security.PublicKey getPublicKey() throws XMLSecurityExceptionMethod getPublicKey- Returns:
- the public key
- Throws:
XMLSecurityException
-
getEncodedDER
protected byte[] getEncodedDER(java.security.PublicKey publicKey) throws XMLSecurityExceptionMethod getEncodedDER- Returns:
- the public key
- Throws:
XMLSecurityException
-
-