Merge pull request #96 from Jasig/conditional-opensaml-init

CASC-237 Make OpenSAML bootstrap conditional.
This commit is contained in:
Scott 2015-01-20 08:34:08 -05:00
commit 380585d391
1 changed files with 5 additions and 2 deletions

View File

@ -56,8 +56,11 @@ public final class Saml11TicketValidator extends AbstractUrlBasedTicketValidator
static {
try {
// we really only need to do this once, so this is why its here.
DefaultBootstrap.bootstrap();
// Check for prior OpenSAML initialization to prevent double init
// that would overwrite existing OpenSAML configuration
if (Configuration.getParserPool() == null) {
DefaultBootstrap.bootstrap();
}
} catch (final ConfigurationException e) {
throw new RuntimeException(e);
}