public final class Signer extends Object
Signature
instance.
This must be done as a separate step in order to support the following cases:
Modifier and Type | Field and Description |
---|---|
private static SignerProvider |
signerInstance
The cached signer provider instance to use.
|
Modifier | Constructor and Description |
---|---|
protected |
Signer()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
private static org.slf4j.Logger |
getLogger()
Get an SLF4J Logger.
|
private static SignerProvider |
getSignerProvider()
Obtain the
SignerProvider instance to be used. |
static void |
signObject(Signature signature)
Signs a single XMLObject.
|
static void |
signObjects(List<Signature> signatures)
Signs the given XMLObject in the order provided.
|
private static SignerProvider signerInstance
public static void signObjects(@Nonnull List<Signature> signatures) throws SignatureException
signatures
- an ordered list of XMLObject to be signedSignatureException
- thrown if there is an error computing the signaturepublic static void signObject(@Nonnull Signature signature) throws SignatureException
signature
- the signature to compute the signature onSignatureException
- thrown if there is an error computing the signature@Nonnull private static SignerProvider getSignerProvider() throws SignatureException
SignerProvider
instance to be used.SignatureException
- if a SignerProvider could not be loaded@Nonnull private static org.slf4j.Logger getLogger()
Copyright © 1999–2020 Shibboleth Consortium. All rights reserved.