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.
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.String[]
supportedKeyTypes
JCA 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.String
getBaseLocalName()
Returns the localname of the Elements of the sub-class.protected byte[]
getEncodedDER(java.security.PublicKey publicKey)
Method getEncodedDERjava.lang.String
getId()
Returns theId
attributejava.security.PublicKey
getPublicKey()
Method getPublicKeyvoid
setId(java.lang.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(org.w3c.dom.Element element, java.lang.String baseURI) throws XMLSecurityException
Constructor DEREncodedKeyValue- Parameters:
element
-baseURI
-- Throws:
XMLSecurityException
-
DEREncodedKeyValue
public DEREncodedKeyValue(org.w3c.dom.Document doc, java.security.PublicKey publicKey) throws XMLSecurityException
Constructor 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 theId
attribute- Parameters:
id
- ID
-
getId
public java.lang.String getId()
Returns theId
attribute- Returns:
- the
Id
attribute
-
getBaseLocalName
public java.lang.String 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
public java.security.PublicKey getPublicKey() throws XMLSecurityException
Method getPublicKey- Returns:
- the public key
- Throws:
XMLSecurityException
-
getEncodedDER
protected byte[] getEncodedDER(java.security.PublicKey publicKey) throws XMLSecurityException
Method getEncodedDER- Returns:
- the public key
- Throws:
XMLSecurityException
-
-