mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-06-23 12:32:13 +00:00
Polish Logging
Issue gh-14801
This commit is contained in:
parent
801e808f67
commit
6695784a3f
@ -26,6 +26,8 @@ import java.util.function.Consumer;
|
||||
import javax.xml.namespace.QName;
|
||||
|
||||
import net.shibboleth.utilities.java.support.xml.SerializeSupport;
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.opensaml.core.xml.XMLObjectBuilder;
|
||||
import org.opensaml.core.xml.config.XMLObjectProviderRegistrySupport;
|
||||
import org.opensaml.saml.common.xml.SAMLConstants;
|
||||
@ -65,6 +67,8 @@ public final class OpenSamlMetadataResolver implements Saml2MetadataResolver {
|
||||
OpenSamlInitializationService.initialize();
|
||||
}
|
||||
|
||||
private final Log logger = LogFactory.getLog(this.getClass());
|
||||
|
||||
private final EntityDescriptorMarshaller entityDescriptorMarshaller;
|
||||
|
||||
private final EntitiesDescriptorMarshaller entitiesDescriptorMarshaller;
|
||||
@ -116,6 +120,9 @@ public final class OpenSamlMetadataResolver implements Saml2MetadataResolver {
|
||||
if (this.signMetadata) {
|
||||
return OpenSamlSigningUtils.sign(entityDescriptor, registration);
|
||||
}
|
||||
else {
|
||||
this.logger.trace("Did not sign metadata since `signMetadata` is `false`");
|
||||
}
|
||||
return entityDescriptor;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user