Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen Revision Vorhergehende Überarbeitung
Letzte Überarbeitung Beide Seiten der Revision
de:shibidp3extdataconnector [2015/09/08 11:10]
Petra Berg Schema eingefügt
de:shibidp3extdataconnector [2015/09/08 13:40]
Petra Berg source files hinzugefügt
Zeile 59: Zeile 59:
             throw new ResolutionException("​Digest algorithm was not supported, unable to compute ID", e);             throw new ResolutionException("​Digest algorithm was not supported, unable to compute ID", e);
         }         }
 +   }
 +}
 +</​file>​
 +
 +===Data Connector Parser===
 +
 +<file java TargetedIdSampleDataConnectorParser.java>​
 +package org.example.shib_idp;​
 +...
 +public class TargetedIdSampleDataConnectorParser extends AbstractDataConnectorParser {
 +
 +   ​public static final QName SCHEMA_NAME = new QName(TargetedIdSampleDataConnectorNamespaceHandler.NAMESPACE,​ "​TargetedIdDataConnector"​);​
 +
 +     /** {@inheritDoc} */
 +    @Override protected Class<​TargetedIdSampleDataConnector>​ getNativeBeanClass() {
 +        return TargetedIdSampleDataConnector.class;​
 +    }
 +
 +   ​@Override
 +   ​protected void doV2Parse(Element element, ParserContext parserContext,​
 +         ​BeanDefinitionBuilder builder) {
 +      super.doParse(element,​ builder); ​     ​
 +   }
 +}
 +</​file>​
 +
 +===Data Connector Namespace Handler===
 +
 +<file java TargetedIdSampleDataConnectorNamespaceHandler.java>​
 +package org.example.shib_idp;​
 +
 +import net.shibboleth.ext.spring.util.BaseSpringNamespaceHandler;​
 +
 +public class TargetedIdSampleDataConnectorNamespaceHandler extends BaseSpringNamespaceHandler {
 +
 +    /** Namespace for this handler. */
 +    public static String NAMESPACE = "​urn:​example.org:​shibboleth:​2.0:​resolver";​
 +    ​
 +    /** {@inheritDoc} */
 +   ​@Override
 +   ​public void init() {
 +        registerBeanDefinitionParser(TargetedIdSampleDataConnectorParser.SCHEMA_NAME,​
 +                new TargetedIdSampleDataConnectorParser());​
    }    }
 } }
Zeile 90: Zeile 133:
 </​schema>​ </​schema>​
 </​file>​ </​file>​
 +
 +===Spring Schema File===
 +
 +   * Das Schema File muss im *.jar File unter META-INF/​spring.schemas liegen
 +
 +<file properties META-INF/​spring.schemas>​
 +urn\:​example.org\:​shibboleth\:​2.0\:​resolver = schema/​myConnectors.xsd
 +</​file>​
 +
 +===Spring Handler File===
 +
 +   * Das Handler File muss im *.jar File unter META-INF/​spring.handlers liegen
 +
 +<file properties META-INF/​spring.handlers>​
 +urn\:​example.org\:​shibboleth\:​2.0\:​resolver = org.example.shib_idp.TargetedIdSampleDataConnectorNamespaceHandler
 +</​file>​
 +
  
  
  • Zuletzt geändert: vor 4 Jahren