[java-identity-provider] branch master updated: IDP-1361 Deprecation warning on V2-only Trust Engine types

Rod Widdowson rdw at steadingsoftware.com
Sun Dec 9 11:46:05 EST 2018


This is an automated email from the git hooks/post-receive script.

rdw pushed a commit to branch master
in repository java-identity-provider.

View the commit online:
http://git.shibboleth.net/view/?p=java-identity-provider.git;a=commit;h=889531cbb31bf19e630a42df814dc1d87f312b9b

The following commit(s) were added to refs/heads/master by this push:
       new  889531c   IDP-1361  Deprecation warning on V2-only Trust Engine types
889531c is described below

commit 889531cbb31bf19e630a42df814dc1d87f312b9b
Author: Rod Widdowson <rdw at steadingsoftware.com>
AuthorDate: Sun Dec 9 16:43:24 2018 +0000

    IDP-1361  Deprecation warning on V2-only Trust Engine types
    
    	MetadataPKIXSignature
    	MetadataPKIXX509Credential
    	MetadataExplicitKeySignature
    	MetadataExplicitKey
    
    https://issues.shibboleth.net/jira/browse/IDP-1361
---
 .../security/trustengine/impl/UnsupportedTrustEngineParser.java     | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/idp-profile-spring/src/main/java/net/shibboleth/idp/profile/spring/relyingparty/security/trustengine/impl/UnsupportedTrustEngineParser.java b/idp-profile-spring/src/main/java/net/shibboleth/idp/profile/spring/relyingparty/security/trustengine/impl/UnsupportedTrustEngineParser.java
index 59ead6d..e6c2099 100644
--- a/idp-profile-spring/src/main/java/net/shibboleth/idp/profile/spring/relyingparty/security/trustengine/impl/UnsupportedTrustEngineParser.java
+++ b/idp-profile-spring/src/main/java/net/shibboleth/idp/profile/spring/relyingparty/security/trustengine/impl/UnsupportedTrustEngineParser.java
@@ -20,6 +20,8 @@ package net.shibboleth.idp.profile.spring.relyingparty.security.trustengine.impl
 import javax.xml.namespace.QName;
 
 import net.shibboleth.idp.profile.spring.relyingparty.metadata.AbstractMetadataProviderParser;
+import net.shibboleth.utilities.java.support.primitive.DeprecationSupport;
+import net.shibboleth.utilities.java.support.primitive.DeprecationSupport.ObjectType;
 import net.shibboleth.utilities.java.support.xml.DOMTypeSupport;
 
 import org.slf4j.Logger;
@@ -69,6 +71,10 @@ public class UnsupportedTrustEngineParser extends AbstractTrustEngineParser {
     @Override protected void doParse(final Element element, final ParserContext parserContext,
             final BeanDefinitionBuilder builder) {
         super.doParse(element, parserContext, builder);
+        DeprecationSupport.warn(ObjectType.ELEMENT, "Trust Engine type " +
+                DOMTypeSupport.getXSIType(element).toString(),
+                parserContext.getReaderContext().getResource().getDescription(),
+                null);
         log.warn("Configuration {} contained unsupported Trust Engine type {}. This has been ignored.", parserContext
                 .getReaderContext().getResource().getDescription(), DOMTypeSupport.getXSIType(element).toString());
     }

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list