...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
<bean id="shibboleth.metrics.MetricStrategy" parent="shibboleth.ContextFunctions.Scripted"
factory-method="inlineScript">
<constructor-arg>
<value>
<![CDATA[
var metricCtx = input.getSubcontext("org.opensaml.profile.context.MetricContext");
metricCtx.addTimer("idp.attribute.resolution",
"ResolveAttributes",
"FilterAttributes"
);
true; // Signals success.
]]>
</value>
</constructor-arg>
</bean> |
...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
<bean id="shibboleth.metrics.MetricStrategy" parent="shibboleth.ContextFunctions.Scripted"
factory-method="inlineScript">
<constructor-arg>
<value>
<![CDATA[
var profileType = Java.type("net.shibboleth.idp.saml.saml1.profile.config.AttributeQueryProfileConfiguration");
if (profileType.PROFILE_ID.equals(input.getProfileId())) {
metricCtx = input.getSubcontext("org.opensaml.profile.context.MetricContext");
metricCtx.addCounter("idp.profile.saml1.attributeQueries", "DecodeMessage");
}
true; // Signals success.
]]>
</value>
</constructor-arg>
</bean> |
...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
<bean id="shibboleth.metrics.MetricStrategy" parent="shibboleth.ContextFunctions.Scripted"
factory-method="inlineScript">
<constructor-arg>
<value>
<![CDATA[
var dateTimeType = Java.type("org.joda.time.DateTime");
var auditCtx = input.getSubcontext("net.shibboleth.idp.profile.context.AuditContext", true);
auditCtx.getFieldValues("ST").add(new dateTimeType().toString("YYYY-MM-dd'T'HH:mm:ss.SSSZZ"));
true; // Signals success.
]]>
</value>
</constructor-arg>
</bean> |
...