public final class SignatureSupport extends Object
| Modifier | Constructor and Description |
|---|---|
private |
SignatureSupport()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
private static Logger |
getLogger()
Get an SLF4J Logger.
|
static void |
prepareSignatureParams(Signature signature,
SignatureSigningParameters parameters)
Prepare a
Signature with necessary additional information prior to signing. |
static void |
signObject(SignableXMLObject signable,
SignatureSigningParameters parameters)
Signs a
SignableXMLObject. |
public static void prepareSignatureParams(@Nonnull Signature signature, @Nonnull SignatureSigningParameters parameters) throws SecurityException
Signature with necessary additional information prior to signing.
NOTE:Since this operation modifies the specified Signature object, it should be called prior to marshalling the Signature object.
The following Signature values will be added:
KeyInfo element representing the signing credentialExisting (non-null) values of these parameters on the specified signature will NOT be overwritten, however.
All values are determined by the specified SignatureSigningParameters. If no value for
a required parameter is specified or included on the passed signature, a SecurityException
will be thrown.
signature - the Signature to be updatedparameters - the signing parameters to useSecurityException - thrown if a required parameter is not supplied in the parameters instance
or available on the Signature instancepublic static void signObject(@Nonnull SignableXMLObject signable, @Nonnull SignatureSigningParameters parameters) throws SecurityException, org.opensaml.core.xml.io.MarshallingException, SignatureException
SignableXMLObject.signable - the signable XMLObject to signparameters - the signing parameters to useSecurityException - if there is a problem preparing the signatureorg.opensaml.core.xml.io.MarshallingException - if there is a problem marshalling the XMLObjectSignatureException - if there is a problem with the signature operationCopyright © 1999–2016 Shibboleth Consortium. All rights reserved.