API Overview API Index Package Overview Direct link to this page
JDK 1.6
  org.jcp.xml.dsig.internal.dom. DOMSignatureMethod View Source
Author(s)
Sean Mullan
Since
Version
Serial
Hierarchy
 Object
      DOMStructure
          DOMSignatureMethod
Implements
 SignatureMethod
Subclasses
Description
publicabstract abstract class DOMSignatureMethod
DOM-based abstract implementation of SignatureMethod.
See also:   
Constructors
protected DOMSignatureMethod (Element smElem) throws MarshalException
  Creates a DOMSignatureMethod from an element.
protected DOMSignatureMethod (String algorithm, AlgorithmParameterSpec params) throws InvalidAlgorithmParameterException
  Creates a DOMSignatureMethod.
Methods
Hide/Show inherited methods
protectedabstract void checkParams (SignatureMethodParameterSpec params) throws InvalidAlgorithmParameterException
  Checks if the specified parameters are valid for this algorithm.
public boolean equals (Object o)
publicfinal String getAlgorithm ()
publicfinal AlgorithmParameterSpec getParameterSpec () [Specified in SignatureMethod]
publicfinal boolean isFeatureSupported (String feature) [Inherited From DOMStructure]
public void marshal (Node parent, String dsPrefix, DOMCryptoContext context) throws MarshalException [Specified in DOMStructure]
This method invokes the abstract marshalParams method to marshal any algorithm-specific parameters.
protectedabstract void marshalParams (Element parent, String paramsPrefix) throws MarshalException
  Marshals the algorithm-specific parameters to an Element and appends it to the specified parent element.
protectedabstract boolean paramsEqual (AlgorithmParameterSpec spec)
  Returns true if parameters are equal; false otherwise.
publicabstract byte sign (Key key, DOMSignedInfo si, XMLSignContext context) throws InvalidKeyException XMLSignatureException
  Signs the bytes with the specified key, using the underlying signature or MAC algorithm.
pack-privatestatic SignatureMethod unmarshal (Element smElem) throws MarshalException
protectedabstract SignatureMethodParameterSpec unmarshalParams (Element paramsElem) throws MarshalException
  Unmarshals SignatureMethodParameterSpec from the specified Element.
publicabstract boolean verify (Key key, DOMSignedInfo si, byte[] signature, XMLValidateContext context) throws InvalidKeyException SignatureException XMLSignatureException
  Verifies the passed-in signature with the specified key, using the underlying signature or MAC algorithm.
Fields
Hide/Show inherited fields
publicfinalstatic String DSA_SHA1 = "http://www.w3.org/2000/09/xmldsig#dsa-sha1" [Inherited From SignatureMethod]
The DSAwithSHA1 (DSS) signature method algorithm URI.
publicfinalstatic String HMAC_SHA1 = "http://www.w3.org/2000/09/xmldsig#hmac-sha1" [Inherited From SignatureMethod]
The HMAC-SHA1 MAC signature method algorithm URI
publicfinalstatic String RSA_SHA1 = "http://www.w3.org/2000/09/xmldsig#rsa-sha1" [Inherited From SignatureMethod]
The RSAwithSHA1 (PKCS #1) signature method algorithm URI.
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar