* The contents of this file are subject to the terms of the Common Development and * Distribution License (the License). You may not use this file except in compliance with the * You can obtain a copy of the License at legal/CDDLv1.0.txt. See the License for the * specific language governing permission and limitations under the License. * When distributing Covered Software, include this CDDL Header Notice in each file and include * the License file at legal/CDDLv1.0.txt. If applicable, add the following below the CDDL * Header, with the fields enclosed by brackets [] replaced by your own identifying * information: "Portions copyright [year] [name of copyright owner]". * Copyright 2014-2015 ForgeRock AS. <!
DOCTYPE ServicesConfiguration PUBLIC "=//iPlanet//Service Management Services (SMS) 1.0 DTD//EN" "jar://com/sun/identity/sm/sms.dtd">
<
Service name="iPlanetAMAuthScriptedService" version="1.0">
i18nFileName="amAuthScripted" i18nKey="iplanet-am-auth-scripted-service-description" <
AttributeSchema name="iplanet-am-auth-scripted-server-timeout" type="single" syntax="number_range" rangeStart="0" rangeEnd="2147483647" i18nKey="g101" resourceName="serverScriptTimeout">
<
AttributeSchema name="iplanet-am-auth-scripted-core-threads" type="single" syntax="number_range" rangeStart="1" rangeEnd="2147483647" i18nKey="g102" resourceName="threadPoolSize">
<
AttributeSchema name="iplanet-am-auth-scripted-max-threads" type="single" syntax="number_range" rangeStart="1" rangeEnd="2147483647" i18nKey="g103" resourceName="maximumThreadPoolSize">
<
AttributeSchema name="iplanet-am-auth-scripted-queue-size" type="single" syntax="number_range" rangeStart="-1" rangeEnd="2147483647" i18nKey="g104" resourceName="threadPoolQueueSize">
<
AttributeSchema name="iplanet-am-auth-scripted-idle-timeout" type="single" syntax="number_range" rangeStart="0" rangeEnd="2147483647" i18nKey="g105" resourceName="threadIdleTimeout">
<
AttributeSchema name="iplanet-am-auth-scripted-white-list" type="list" syntax="string" i18nKey="g106" resourceName="javaClassWhitelist">
<
AttributeSchema name="iplanet-am-auth-scripted-black-list" type="list" syntax="string" i18nKey="g107" resourceName="javaClassBlackList">
<
AttributeSchema name="iplanet-am-auth-scripted-use-security-manager" type="single" syntax="boolean" i18nKey="g108" resourceName="useSecurityManager">
<
BooleanTrueValue i18nKey="i18nTrue">true</
BooleanTrueValue>
<
BooleanFalseValue i18nKey="i18nFalse">false</
BooleanFalseValue>
<
AttributeSchema name="ScriptValidator" <
AttributeSchema name="iplanet-am-auth-scripted-client-script-enabled" resourceName="clientScriptEnabled">
<
BooleanTrueValue i18nKey="i18nTrue">true</
BooleanTrueValue>
<
BooleanFalseValue i18nKey="i18nFalse">false</
BooleanFalseValue>
<
AttributeSchema name="iplanet-am-auth-scripted-client-script" resourceName="clientScript">
<
AttributeSchema name="iplanet-am-auth-scripted-script-type" resourceName="serverScriptType">
<
ChoiceValue i18nKey="choice1">JavaScript</
ChoiceValue>
<
ChoiceValue i18nKey="choice2">Groovy</
ChoiceValue>
<
Value>JavaScript</
Value>
<
AttributeSchema name="iplanet-am-auth-scripted-server-script" validator="ScriptValidator" resourceName="serverScript">
var START_TIME = 9; // 9am
var END_TIME = 17; // 5pm
// Log out current cookies in the request
for (cookie in cookies) {
// Fetch user information via REST
// Log out response from REST call
<
AttributeSchema name="iplanet-am-auth-scripted-auth-level" syntax="number_range" rangeStart="0" rangeEnd="2147483647" resourceName="authenticationLevel">
<
SubSchema name="serverconfig" inheritance="multiple" resourceName="USE-PARENT">
<
AttributeSchema name="ScriptValidator" <
AttributeSchema name="iplanet-am-auth-scripted-client-script-enabled" resourceName="clientScriptEnabled">
<
BooleanTrueValue i18nKey="i18nTrue">true</
BooleanTrueValue>
<
BooleanFalseValue i18nKey="i18nFalse">false</
BooleanFalseValue>
<
AttributeSchema name="iplanet-am-auth-scripted-client-script" resourceName="clientScript">
<
AttributeSchema name="iplanet-am-auth-scripted-script-type" resourceName="serverScriptType">
<
ChoiceValue i18nKey="choice1">JavaScript</
ChoiceValue>
<
ChoiceValue i18nKey="choice2">Groovy</
ChoiceValue>
<
Value>JavaScript</
Value>
<
AttributeSchema name="iplanet-am-auth-scripted-server-script" validator="ScriptValidator" resourceName="serverScript">
var START_TIME = 9; // 9am
var END_TIME = 17; // 5pm
// Log out current cookies in the request
for (cookie in cookies) {
// Fetch user information via REST
// Log out response from REST call
<
AttributeSchema name="iplanet-am-auth-scripted-auth-level" syntax="number_range" rangeStart="0" rangeEnd="2147483647" resourceName="authenticationLevel">