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.


Field Summary
private  String digestAlgorithm
          Algorithm used to digest the content .
private  Logger log
          Logger.
private  String referenceID
          Element reference ID.
private  List<String> transforms
          Transforms applied to the content.
 
Constructor Summary
URIContentReference(String referenceID)
          Constructor.
 
Method Summary
 void createReference(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
 

Field Detail

log

private final Logger log
Logger.


referenceID

private String referenceID
Element reference ID.


digestAlgorithm

private String digestAlgorithm
Algorithm used to digest the content .


transforms

private List<String> transforms
Transforms applied to the content.

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(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 © 1999-2013. All Rights Reserved.