CASC-237 Make OpenSAML bootstrap conditional.

This commit is contained in:
Marvin S. Addison 2015-01-17 11:25:03 -05:00
parent 6de80009cf
commit 4aef368057
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);
}