org.opensaml.xml.signature
Class URIContentReference

java.lang.Object
  extended by org.opensaml.xml.signature.URIContentReference
All Implemented Interfaces:
ContentReference
Direct Known Subclasses:
DocumentInternalIDContentReference

public class URIContentReference
extends Object
implements ContentReference

A generic content reference that uses a URI to reference the content to be signed.


Constructor Summary
URIContentReference(String referenceID)
          Constructor.
 
Method Summary
 void createReference(org.apache.xml.security.signature.XMLSignature signature)
          Called by the signature marshaller to allow references to be added to the signature.
 String getDigestAlgorithm()
          Gets the algorithm used to digest the content.
 List<String> getTransforms()
          Gets the transforms applied to the content prior to digest generation.
 void setDigestAlgorithm(String newAlgorithm)
          Sets the algorithm used to digest the content.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

URIContentReference

public URIContentReference(String referenceID)
Constructor. The anchor designator (#) must not be included in the ID.

Parameters:
referenceID - the reference ID of the element to be signed
Method Detail

getTransforms

public List<String> getTransforms()
Gets the transforms applied to the content prior to digest generation.

Returns:
the transforms applied to the content prior to digest generation

getDigestAlgorithm

public String getDigestAlgorithm()
Gets the algorithm used to digest the content.

Returns:
the algorithm used to digest the content

setDigestAlgorithm

public void setDigestAlgorithm(String newAlgorithm)
Sets the algorithm used to digest the content.

Parameters:
newAlgorithm - the algorithm used to digest the content

createReference

public void createReference(org.apache.xml.security.signature.XMLSignature signature)
Called by the signature marshaller to allow references to be added to the signature.

Specified by:
createReference in interface ContentReference
Parameters:
signature - the signature object


Copyright © 2006-2011 Internet2. All Rights Reserved.