public class HMACParameterImpl extends AlgorithmParameterImpl
HMACOutputLength element that supports
the DOM XML representation and processing mechanism.DOMStructure.NodeWrapper| Modifier and Type | Field and Description |
|---|---|
protected Integer |
outputLength_
The HMAC output length.
|
implMap_, state_, STATE_CREATED, STATE_MARSHALED, STATE_UNINITIALIZED, STATE_UNMARSHALED| Constructor and Description |
|---|
HMACParameterImpl(DOMCryptoContext context,
Node node)
Creates a new instance of this
HMACParameterImpl with the
specified provider config, context and node to unmarshal from. |
HMACParameterImpl(int outputLength)
Creates a new instance of this
HMACParameterImpl with the
specified provider config and output length. |
| Modifier and Type | Method and Description |
|---|---|
String |
getLocalName()
Returns the local name of the represented XML element.
|
String |
getNamespace()
Returns the namespace URI of the represented XML element.
|
int |
getOutputLength()
Returns the output length.
|
protected Element |
marshalElement(DOMCryptoContext context,
Node parent,
Node nextSibling)
Marshals the XML representation of the
Element represented by this
DOMStructure and returns it. |
protected void |
unmarshalElement(DOMCryptoContext context,
Element element)
Unmarshals the given
element. |
setParentStructureaddBytesToElement, addBytesToElement, clearMarshalling, clearMarshalling, getBytesFromElement, getBytesFromElementStream, getChildStructures, getChildStructureVersion, getHere, getImplClass, getInstance, getInstance, getNode, getParentStructure, getParentStructureOf, getQualifiedName, getQualifiedName, hasNSDeclAttrInScope, isFeatureSupported, isNSDeclInScope, marshal, marshalAttributes, marshalIDAttribute, newIDforLookUp, putChildStructure, putImplClass, setBackToCompatibilityPrior1_14, setNode, toString, unmarshal, unmarshalAttributes, unmarshalIDAttribute, unmarshalStructures, wrapNodeprotected Integer outputLength_
null)public HMACParameterImpl(DOMCryptoContext context, Node node) throws MarshalException
HMACParameterImpl with the
specified provider config, context and node to unmarshal from.context - the contextnode - the node to unmarshal fromMarshalException - if an exception occurs during unmarshalingpublic HMACParameterImpl(int outputLength)
HMACParameterImpl with the
specified provider config and output length.outputLength - the output lengthpublic String getLocalName()
DOMStructuregetLocalName in class DOMStructureDOMStructure.getLocalName()public String getNamespace()
DOMStructuregetNamespace in class DOMStructureDOMStructure.getNamespace()public int getOutputLength()
protected Element marshalElement(DOMCryptoContext context, Node parent, Node nextSibling) throws MarshalException
DOMStructureElement represented by this
DOMStructure and returns it.
This method is called by DOMStructure.marshal(DOMCryptoContext, Node, Node).
marshalElement in class DOMStructurecontext - the marshal contextparent - where to place the marshalled elementnextSibling - before which to place the marshalled nodeElementMarshalException - if an exception occurs during marshalingDOMStructure.marshalElement(DOMCryptoContext,
Node, Node)protected void unmarshalElement(DOMCryptoContext context, Element element) throws MarshalException
DOMStructureelement.
This method is called by DOMStructure.unmarshal(DOMCryptoContext).
A subclass has to overwrite this method to perform any special unmarshaling required.
unmarshalElement in class DOMStructurecontext - the marshal contextelement - the element to be unmarshalMarshalException - if an exception occurs during unmarshalingDOMStructure.unmarshalElement(javax.xml.crypto.dom.DOMCryptoContext,
org.w3c.dom.Element)© 2002-2005 IAIK, © 2004, 2006 - 2019 Stiftung SIC