org.jcp.xml.dsig.internal.dom
Class DOMDigestMethod

java.lang.Object
  extended by org.jcp.xml.dsig.internal.dom.DOMStructure
      extended by org.jcp.xml.dsig.internal.dom.DOMDigestMethod
All Implemented Interfaces:
AlgorithmMethod, DigestMethod, XMLStructure

public abstract class DOMDigestMethod
extends DOMStructure
implements DigestMethod

DOM-based abstract implementation of DigestMethod.

Author:
Sean Mullan

Field Summary
 
Fields inherited from interface javax.xml.crypto.dsig.DigestMethod
RIPEMD160, SHA1, SHA256, SHA512
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.security.spec.AlgorithmParameterSpec getParameterSpec()
          Returns the algorithm-specific input parameters associated with this DigestMethod.
 int hashCode()
           
 void marshal(org.w3c.dom.Node parent, java.lang.String prefix, DOMCryptoContext context)
          This method invokes the abstract marshalParams method to marshal any algorithm-specific parameters.
 
Methods inherited from class org.jcp.xml.dsig.internal.dom.DOMStructure
isFeatureSupported
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.xml.crypto.XMLStructure
isFeatureSupported
 
Methods inherited from interface javax.xml.crypto.AlgorithmMethod
getAlgorithm
 

Method Detail

getParameterSpec

public final java.security.spec.AlgorithmParameterSpec getParameterSpec()
Description copied from interface: DigestMethod
Returns the algorithm-specific input parameters associated with this DigestMethod.

The returned parameters can be typecast to a DigestMethodParameterSpec object.

Specified by:
getParameterSpec in interface AlgorithmMethod
Specified by:
getParameterSpec in interface DigestMethod
Returns:
the algorithm-specific parameters (may be null if not specified)

marshal

public void marshal(org.w3c.dom.Node parent,
                    java.lang.String prefix,
                    DOMCryptoContext context)
             throws MarshalException
This method invokes the abstract marshalParams method to marshal any algorithm-specific parameters.

Specified by:
marshal in class DOMStructure
Throws:
MarshalException

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object


Copyright © 2000-2011 The Apache Software Foundation. All Rights Reserved.