public class ExtendedSignerProviderInitializer extends Object implements Initializer
SignerProvider that should be used. Any number of providers
may be on the classpath and if we want to have a particular one loaded (and cached) by the Signer class we
have to make sure that this one is before any other provider on the classpath. So, not an ideal case, but not a
problem since the only provider used in a default setup is ApacheSantuarioSignerProviderImpl. But since we
extend this class with workraounds for RSAPSS, we want to make sure that our ExtendedSignerProvider is loaded
before the default provider, no matter how the classpath looks.| Constructor and Description |
|---|
ExtendedSignerProviderInitializer() |
| Modifier and Type | Method and Description |
|---|---|
void |
init()
The
Signer class has a static signer provider cached. |
public void init()
throws InitializationException
Signer class has a static signer provider cached. This provider is set the first time the
Signer.signObject(org.opensaml.xmlsec.signature.Signature) method is called. So what we want to do is to
modify the classpath so that the resource that holds our extended signer provider is always found first. Once, that
is done, we invoke the signObject method which will set the cached provider to our implementation.init in interface InitializerInitializationExceptionCopyright © 2020 Sweden Connect. All rights reserved.