org.opensaml.xml.signature
Class Signer

java.lang.Object
  extended by org.opensaml.xml.signature.Signer

public class Signer
extends Object

This class is responsible for creating the digital signatures for the given signable XMLObjects. This must be done as a seperate step because in order to support the following cases:


Constructor Summary
protected Signer()
          Constructor.
 
Method Summary
private static Logger getLogger()
          Get an SLF4J Logger.
static void signObject(Signature signature)
          Signs a single XMLObject.
static void signObjects(List<Signature> xmlObjects)
          Signs the given XMLObject in the order provided.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Signer

protected Signer()
Constructor.

Method Detail

signObjects

public static void signObjects(List<Signature> xmlObjects)
                        throws SignatureException
Signs the given XMLObject in the order provided.

Parameters:
xmlObjects - an orderded list of XMLObject to be signed
Throws:
SignatureException - thrown if there is an error computing the signature

signObject

public static void signObject(Signature signature)
                       throws SignatureException
Signs a single XMLObject.

Parameters:
signature - the signature to computer the signature on
Throws:
SignatureException - thrown if there is an error computing the signature

getLogger

private static Logger getLogger()
Get an SLF4J Logger.

Returns:
a Logger instance


Copyright © 1999-2012. All Rights Reserved.