[prev in list] [next in list] [prev in thread] [next in thread] 

List:       forgerock-openam-commit
Subject:    [CommitOpenAM] [14920] branches/sts_soap_install: commit of initial ViewBean/Task/.jsp/ property fil
From:       noreply () forgerock ! org
Date:       2015-07-31 22:04:57
Message-ID: 20150731220457.7BA413FB8D () sources ! internal ! forgerock ! com
[Download RAW message or body]

[Attachment #2 (text/html)]

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[14920] branches/sts_soap_install: commit of initial \
ViewBean/Task/.jsp/property files for a soap-sts deployment common task</title> \
</head> <body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: \
verdana,arial,helvetica,sans-serif; font-size: 10pt;  } #msg dl a { font-weight: \
bold} #msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: \
bold; } #msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: \
6px; } #logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em \
0; } #logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg \
h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; } \
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; \
} #logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: \
-1.5em; padding-left: 1.5em; } #logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em \
1em 0 1em; background: white;} #logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid \
#fa0; border-bottom: 1px solid #fa0; background: #fff; } #logmsg table th { \
text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted \
#fa0; } #logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: \
0.2em 0.5em; } #logmsg table thead th { text-align: center; border-bottom: 1px solid \
#fa0; } #logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: \
6px; } #patch { width: 100%; }
#patch h4 {font-family: \
verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
 #patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, \
#patch .copfile {border:1px solid #ccc;margin:10px 0;} #patch ins \
{background:#dfd;text-decoration:none;display:block;padding:0 10px;} #patch del \
{background:#fdd;text-decoration:none;display:block;padding:0 10px;} #patch .lines, \
                .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a \
href="http://sources.forgerock.org/changelog/openam/?cs=14920">14920</a></dd> \
<dt>Author</dt> <dd>dhogan</dd> <dt>Date</dt> <dd>2015-07-31 23:04:57 +0100 (Fri, 31 \
Jul 2015)</dd> </dl>

<h3>Log Message</h3>
<pre>commit of initial ViewBean/Task/.jsp/property files for a soap-sts deployment \
common task</pre>

<h3>Added Paths</h3>
<ul>
<li><a href="#branchessts_soap_installopenamconsolesrcmainjavacomsunidentityconsoletas \
kCreateSoapSTSDeploymentViewBeanjava">branches/sts_soap_install/openam-console/src/mai \
n/java/com/sun/identity/console/task/CreateSoapSTSDeploymentViewBean.java</a></li> \
<li><a href="#branchessts_soap_installopenamconsolesrcmainwebappconsoletaskCreateSoapS \
TSDeploymentjsp">branches/sts_soap_install/openam-console/src/main/webapp/console/task/CreateSoapSTSDeployment.jsp</a></li>
 <li><a href="#branchessts_soap_installopenamfederationOpenFMsrcmainjavacomsunidentity \
workflowCreateSoapSTSDeploymentjava">branches/sts_soap_install/openam-federation/OpenFM/src/main/java/com/sun/identity/workflow/CreateSoapSTSDeployment.java</a></li>
 <li><a href="#branchessts_soap_installopenamfederationOpenFMsrcmainresourcescomsunide \
ntityconsolepropertyCreateSoapSTSDeploymentxml">branches/sts_soap_install/openam-feder \
ation/OpenFM/src/main/resources/com/sun/identity/console/propertyCreateSoapSTSDeployment.xml</a></li>
 </ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="branchessts_soap_installopenamconsolesrcmainjavacomsunidentityconsoletaskCreateSoapSTSDeploymentViewBeanjava"></a>
 <div class="addfile"><h4>Added: \
branches/sts_soap_install/openam-console/src/main/java/com/sun/identity/console/task/CreateSoapSTSDeploymentViewBean.java \
(0 => 14920)</h4> <pre class="diff"><span>
<span class="info">--- \
branches/sts_soap_install/openam-console/src/main/java/com/sun/identity/console/task/CreateSoapSTSDeploymentViewBean.java	 \
                (rev 0)
+++ branches/sts_soap_install/openam-console/src/main/java/com/sun/identity/console/task/CreateSoapSTSDeploymentViewBean.java	2015-07-31 \
22:04:57 UTC (rev 14920) </span><span class="lines">@@ -0,0 +1,100 @@
</span><ins>+package com.sun.identity.console.task;
+
+import com.iplanet.jato.view.View;
+import com.iplanet.jato.view.event.DisplayEvent;
+import com.sun.identity.console.base.AMPrimaryMastHeadViewBean;
+import com.sun.identity.console.base.AMPropertySheet;
+import com.sun.identity.console.base.model.AMConsoleException;
+import com.sun.identity.console.base.model.AMModel;
+import com.sun.identity.console.base.model.AMPropertySheetModel;
+import com.sun.identity.console.task.model.TaskModel;
+import com.sun.identity.console.task.model.TaskModelImpl;
+import com.sun.web.ui.model.CCPageTitleModel;
+import com.sun.web.ui.view.alert.CCAlert;
+import com.sun.web.ui.view.html.CCDropDownMenu;
+import com.sun.web.ui.view.pagetitle.CCPageTitle;
+
+import javax.servlet.http.HttpServletRequest;
+import java.util.Set;
+
+/**
+ * ViewBean associated with the CommonTask of creating a soap-sts deployment .war.
+ */
+public class CreateSoapSTSDeploymentViewBean extends AMPrimaryMastHeadViewBean {
+    public static final String DEFAULT_DISPLAY_URL =
+            &quot;/console/task/CreateSoapSTSDeployment.jsp&quot;;
+    private static final String PAGETITLE = &quot;pgtitle&quot;;
+    private static final String PROPERTY_ATTRIBUTE = &quot;propertyAttributes&quot;;
+    private static final String REALM = &quot;tfRealm&quot;;
+
+    private CCPageTitleModel ptModel;
+    private AMPropertySheetModel propertySheetModel;
+
+
+    public CreateSoapSTSDeploymentViewBean() {
+        super(&quot;CreateSoapSTSDeployment&quot;);
+        setDefaultDisplayURL(DEFAULT_DISPLAY_URL);
+        createPageTitleModel();
+        createPropertyModel();
+        registerChildren();
+    }
+
+    protected void registerChildren() {
+        propertySheetModel.registerChildren(this);
+        registerChild(PAGETITLE, CCPageTitle.class);
+        super.registerChildren();
+    }
+
+    protected View createChild(String name) {
+        View view;
+        if (name.equals(PAGETITLE)) {
+            view = new CCPageTitle(this, ptModel, name);
+        } else if (ptModel.isChildSupported(name)) {
+            view = ptModel.createChild(this, name);
+        } else if (name.equals(PROPERTY_ATTRIBUTE)) {
+            view = new AMPropertySheet(this, propertySheetModel, name);
+        } else if (propertySheetModel.isChildSupported(name)) {
+            view = propertySheetModel.createChild(this, name, getModel());
+        } else {
+            view = super.createChild(name);
+        }
+        return view;
+    }
+
+    private void createPageTitleModel() {
+        ptModel = new CCPageTitleModel(
+                getClass().getClassLoader().getResourceAsStream(
+                        &quot;com/sun/identity/console/twoBtnsPageTitle.xml&quot;));
+        ptModel.setValue(&quot;button1&quot;, &quot;button.create&quot;);
+        ptModel.setValue(&quot;button2&quot;, &quot;button.cancel&quot;);
+    }
+
+    private void createPropertyModel() {
+        propertySheetModel = new AMPropertySheetModel(
+                getClass().getClassLoader().getResourceAsStream(
+                        \
&quot;com/sun/identity/console/propertyCreateSoapSTSDeployment.xml&quot;)); +        \
propertySheetModel.clear(); +    }
+
+    protected AMModel getModelInternal() {
+        HttpServletRequest req = getRequestContext().getRequest();
+        return new TaskModelImpl(req, getPageSessionAttributes());
+    }
+
+    public void beginDisplay(DisplayEvent e) {
+        try {
+            TaskModel model = (TaskModel) getModel();
+            Set realms = model.getRealms();
+            CCDropDownMenu menuRealm = (CCDropDownMenu) getChild(REALM);
+            menuRealm.setOptions(createOptionList(realms));
+
+            String realm = \
getRequestContext().getRequest().getParameter(&quot;realm&quot;); +            if \
(realm != null &amp;&amp; !realm.trim().isEmpty()) { +                \
setDisplayFieldValue(REALM, realm); +            }
+        } catch (AMConsoleException ex) {
+            setInlineAlertMessage(CCAlert.TYPE_ERROR, &quot;message.error&quot;,
+                    ex.getMessage());
+        }
+    }
+}
</ins></span></pre></div>
<a id="branchessts_soap_installopenamconsolesrcmainwebappconsoletaskCreateSoapSTSDeploymentjsp"></a>
 <div class="addfile"><h4>Added: \
branches/sts_soap_install/openam-console/src/main/webapp/console/task/CreateSoapSTSDeployment.jsp \
(0 => 14920)</h4> <pre class="diff"><span>
<span class="info">--- \
branches/sts_soap_install/openam-console/src/main/webapp/console/task/CreateSoapSTSDeployment.jsp	 \
                (rev 0)
+++ branches/sts_soap_install/openam-console/src/main/webapp/console/task/CreateSoapSTSDeployment.jsp	2015-07-31 \
22:04:57 UTC (rev 14920) </span><span class="lines">@@ -0,0 +1,167 @@
</span><ins>+&lt;%--
+  ~ 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 +  ~ License.
+  ~
+  ~ 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: &quot;Portions copyright [year] \
[name of copyright owner]&quot;. +  ~
+  ~ Copyright 2015 ForgeRock AS.
+--%&gt;
+
+&lt;%@page info=&quot;CreateSoapSTSDeployment&quot; \
contentType=&quot;text/html;charset=UTF-8&quot; language=&quot;java&quot; %&gt; \
+&lt;%@page import=&quot;org.owasp.esapi.ESAPI&quot; %&gt; +&lt;%@taglib \
uri=&quot;/WEB-INF/jato.tld&quot; prefix=&quot;jato&quot; %&gt; +&lt;%@taglib \
uri=&quot;/WEB-INF/cc.tld&quot; prefix=&quot;cc&quot; %&gt; +&lt;%@taglib \
tagdir=&quot;/WEB-INF/tags&quot; prefix=&quot;console&quot;%&gt; +&lt;%
+  request.setCharacterEncoding(&quot;UTF-8&quot;);
+%&gt;
+
+&lt;jato:useViewBean
+        className=&quot;com.sun.identity.console.task.ConfigureSocialAuthNViewBean&quot;
 +        fireChildDisplayEvents=&quot;true&quot; &gt;
+
+  &lt;cc:i18nbundle baseName=&quot;amConsole&quot; id=&quot;amConsole&quot;
+                 locale=&quot;&lt;%=((com.sun.identity.console.base.AMViewBeanBase)viewBean).getUserLocale()%&gt;&quot;/&gt;
 +
+  &lt;cc:header name=&quot;hdrCommon&quot; pageTitle=&quot;webconsole.title&quot; \
bundleID=&quot;amConsole&quot; copyrightYear=&quot;2014&quot; \
fireDisplayEvents=&quot;true&quot;&gt; +
+    &lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; \
href=&quot;../console/css/openam.css&quot; /&gt; +    &lt;script \
language=&quot;javascript&quot; \
src=&quot;../console/js/am.js&quot;&gt;&lt;/script&gt; +    &lt;script \
language=&quot;javascript&quot; \
src=&quot;../com_sun_web_ui/js/dynamic.js&quot;&gt;&lt;/script&gt; +
+    &lt;div id=&quot;main&quot; style=&quot;position: absolute; margin: 0; border: \
none; padding: 0; width: 100%; height: 101%;&quot;&gt; +      &lt;cc:form \
name=&quot;CreateSoapSTSDeployment&quot; method=&quot;post&quot; \
defaultCommandChild=&quot;/btnSearch&quot;&gt; +        &lt;jato:hidden \
name=&quot;szCache&quot; /&gt; +
+        &lt;%-- HEADER --%&gt;
+        &lt;script language=&quot;javascript&quot;&gt;
+          function confirmLogout() {
+            return confirm(&quot;&lt;cc:text name=&quot;txtLogout&quot; \
defaultValue=&quot;masthead.logoutMessage&quot; \
bundleID=&quot;amConsole&quot;/&gt;&quot;); +          }
+        &lt;/script&gt;
+        &lt;cc:primarymasthead name=&quot;mhCommon&quot; \
bundleID=&quot;amConsole&quot;  logoutOnClick=&quot;return confirmLogout();&quot; +   \
locale=&quot;&lt;%=((com.sun.identity.console.base.AMViewBeanBase)viewBean).getUserLocale()%&gt;&quot;/&gt;
 +
+        &lt;table border=&quot;0&quot; cellpadding=&quot;10&quot; \
cellspacing=&quot;0&quot; width=&quot;100%&quot;&gt; +          &lt;tr&gt;
+            &lt;td&gt;
+              &lt;cc:alertinline name=&quot;ialertCommon&quot; \
bundleID=&quot;amConsole&quot; /&gt; +            &lt;/td&gt;
+          &lt;/tr&gt;
+        &lt;/table&gt;
+
+        &lt;%-- PAGE CONTENT --%&gt;
+        &lt;cc:pagetitle name=&quot;pgtitle&quot;
+                      bundleID=&quot;amConsole&quot;
+                      \
pageTitleText=&quot;page.title.configure.social.authentication&quot; +                \
showPageTitleSeparator=&quot;false&quot; +                      \
viewMenuLabel=&quot;&quot; +                      \
pageTitleHelpMessage=&quot;page.desc.configure.social.authentication&quot; +          \
showPageButtonsTop=&quot;true&quot; +                      \
showPageButtonsBottom=&quot;false&quot; &gt; +
+          &lt;cc:propertysheet
+                  name=&quot;propertyAttributes&quot;
+                  bundleID=&quot;amConsole&quot;
+                  showJumpLinks=&quot;false&quot; /&gt;
+        &lt;/cc:pagetitle&gt;
+
+      &lt;/cc:form&gt;
+    &lt;/div&gt;
+    &lt;div id=&quot;dlg&quot; class=&quot;dvs&quot;&gt;&lt;/div&gt;
+    &lt;script type=&quot;text/javascript&quot;&gt;
+      &lt;!--
+      var ajaxObj = getXmlHttpRequestObject();
+      var userLocale = &quot;&lt;%= viewBean.getUserLocale().toString() %&gt;&quot;;
+      var msgConfiguring = &quot;&lt;p&gt;&lt;img \
src=\&quot;../console/images/processing.gif\&quot; width=\&quot;66\&quot; \
height\&quot;66\&quot;/&gt;&lt;/p&gt;&lt;cc:text name=&quot;txtConfiguring&quot; \
defaultValue=&quot;social.configuration.waiting&quot; bundleID=&quot;amConsole&quot; \
escape=&quot;false&quot; /&gt;&quot;; +      var msgConfigured = \
&quot;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;input name=\&quot;btnOK\&quot; \
type=\&quot;submit\&quot; class=\&quot;Btn1\&quot; value=\&quot;&lt;cc:text \
name=&quot;txtOKBtn&quot; defaultValue=&quot;ajax.ok.button&quot; \
bundleID=&quot;amConsole&quot; /&gt;\&quot; onClick=\&quot;redirectToXui();return \
false;\&quot; /&gt;&lt;/div&gt;&lt;/p&gt;&quot;; +      var closeBtn = \
&quot;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;div \
class=\&quot;TtlBtnDiv\&quot;&gt;&lt;input name=\&quot;btnClose\&quot; \
type=\&quot;submit\&quot; class=\&quot;Btn1\&quot; value=\&quot;&lt;cc:text \
name=&quot;txtCloseBtn&quot; defaultValue=&quot;ajax.close.button&quot; \
bundleID=&quot;amConsole&quot; /&gt;\&quot; onClick=\&quot;focusMain();return \
false;\&quot; /&gt;&lt;/div&gt;&lt;/p&gt;&quot;; +
+      var frm = document.forms['CreateSoapSTSDeployment'];
+      var btn1 = frm.elements['CreateSoapSTSDeployment.button1'];
+      btn1.onclick = submitPage;
+      var btn2 = frm.elements['CreateSoapSTSDeployment.button2'];
+      btn2.onclick = cancelOp;
+      &lt;%
+          String type = request.getParameter(&quot;type&quot;);
+          if (!ESAPI.validator().isValidInput(&quot;Social AuthN Type&quot;, type, \
&quot;HTTPParameterValue&quot;, 2000, true)) { +              type = null;
+          }
+          if (type != null) {
+              out.println(&quot;var type = \&quot;&quot; + \
ESAPI.encoder().encodeForHTML(type) + &quot;\&quot;;&quot;); +          } else {
+              out.println(&quot;var type = null;&quot;);
+          }
+      %&gt;
+
+      function submitPage() {
+        fade();
+        document.getElementById('dlg').innerHTML = '&lt;center&gt;' + msgConfiguring \
+ '&lt;/center&gt;'; +        var url = &quot;../console/ajax/AjaxProxy.jsp&quot;;
+        var params = 'locale=' + userLocale + \
'&amp;class=com.sun.identity.workflow.CreateSoapSTSDeployment' + getData(); +        \
ajaxPost(ajaxObj, url, params, configured); +        return false;
+      }
+
+      function cancelOp() {
+        redirectToXui();
+        return false;
+      }
+
+      function getData() {
+        var realm = frm.elements['CreateSoapSTSDeployment.tfRealm'].value;
+        var clientId = frm.elements['CreateSoapSTSDeployment.tfClientId'].value;
+        var clientSecret = \
frm.elements['CreateSoapSTSDeployment.tfClientSecret'].value; +        var \
clientSecretConfirm = frm.elements['CreateSoapSTSDeployment.tfConfirmSecret'].value; \
+        var redirectUrl = \
frm.elements['CreateSoapSTSDeployment.tfRedirectUrl'].value; +
+        var params = &quot;&amp;realm=&quot; + escapeEx(realm)
+                + &quot;&amp;type=&quot; + escapeEx(type)
+                + &quot;&amp;clientId=&quot; + escapeEx(clientId)
+                + &quot;&amp;clientSecret=&quot; + escapeEx(clientSecret)
+                + &quot;&amp;clientSecretConfirm=&quot; + \
escapeEx(clientSecretConfirm) +                + &quot;&amp;redirectUrl=&quot; + \
escapeEx(redirectUrl); +
+        if (frm.elements['CreateSoapSTSDeployment.tfDiscoveryUrl']) {
+          var discoveryUrl = \
frm.elements['CreateSoapSTSDeployment.tfDiscoveryUrl'].value; +          var imageUrl \
= frm.elements['CreateSoapSTSDeployment.tfImageUrl'].value; +          var \
providerName = frm.elements['CreateSoapSTSDeployment.tfProviderName'].value; +
+          params += &quot;&amp;discoveryUrl=&quot; + escapeEx(discoveryUrl)
+                  + &quot;&amp;imageUrl=&quot; + escapeEx(imageUrl)
+                  + &quot;&amp;providerName=&quot; + escapeEx(providerName);
+        }
+
+        return params;
+      }
+
+      function configured() {
+        if (ajaxObj.readyState == 4) {
+          var result = hexToString(ajaxObj.responseText);
+          var status = result.substring(0, result.indexOf('|'));
+          var result = result.substring(result.indexOf('|') + 1);
+          var msg = '&lt;center&gt;&lt;p&gt;' + result + \
'&lt;/p&gt;&lt;/center&gt;'; +          if (status == 0) {
+            msg = msg + '&lt;center&gt;' + msgConfigured + '&lt;/center&gt;';
+          } else {
+            msg = msg + '&lt;center&gt;' + closeBtn + '&lt;/center&gt;';
+          }
+          document.getElementById('dlg').innerHTML = msg;
+        }
+      }
+
+      --&gt;
+    &lt;/script&gt;
+    &lt;%-- END CONTENT --%&gt;
+    &lt;console:redirectToXui \
realm=&quot;encodeURIComponent(frm.elements['CreateSoapSTSDeployment.tfRealm'].value)&quot;
 +                           xuiPath=&quot;../XUI#realms/{realm}/dashboard&quot;/&gt;
+
+  &lt;/cc:header&gt;
+&lt;/jato:useViewBean&gt;
</ins></span></pre></div>
<a id="branchessts_soap_installopenamfederationOpenFMsrcmainjavacomsunidentityworkflowCreateSoapSTSDeploymentjava"></a>
 <div class="addfile"><h4>Added: \
branches/sts_soap_install/openam-federation/OpenFM/src/main/java/com/sun/identity/workflow/CreateSoapSTSDeployment.java \
(0 => 14920)</h4> <pre class="diff"><span>
<span class="info">--- \
branches/sts_soap_install/openam-federation/OpenFM/src/main/java/com/sun/identity/workflow/CreateSoapSTSDeployment.java	 \
                (rev 0)
+++ branches/sts_soap_install/openam-federation/OpenFM/src/main/java/com/sun/identity/workflow/CreateSoapSTSDeployment.java	2015-07-31 \
22:04:57 UTC (rev 14920) </span><span class="lines">@@ -0,0 +1,60 @@
</span><ins>+/*
+ * 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 + * License.
+ *
+ * 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: &quot;Portions copyright [year] [name of \
copyright owner]&quot;. + *
+ * Copyright 2015 ForgeRock AS.
+ */
+
+package com.sun.identity.workflow;
+
+import java.util.Locale;
+import java.util.Map;
+
+/**
+ * This class is responsible for creating the soap-sts .war file which will expose \
soap-sts instances published to + * a given realm. As such, it has a correspondence \
to the SoapSTS Agent created in a given realm. + *
+ * This class will create a .war file, based off of the .war file generated by the \
openam-sts/openam-soap-sts/openam-soap-sts-server + * module. This class will \
customize this .war file in the following way: + * 1. modify the config.properties \
file contained in the .war WEB-INF/classes directory to: + *      a. specify the \
user-entered soap-sts-agent username as the value corresponding to the \
soap_sts_agent_username property + *      b. specify the encrypted soap-sts-agent \
password as the value corresponding to the soap_sts_agent_password property + *      \
TODO: what is the encryption scheme - seems like the only viable possibility is to \
employ the same scheme used by web agents + *      c. specify the cookie name for \
this OpenAM deployment as the value corresponding to the am_session_cookie_name \
property + *      d. specify the realm for this soap-sts deployment as the value \
corresponding to the am_realm property + *      e. specify the url for the OpenAM \
deployment as the value corresponding to the am_deployment_url property + * 2. \
include any user-specified custom wsdl files in the WEB-INF/classes directory + * 3. \
include the keystore file(s) referenced in the Soap Keystore Configuration section of \
any soap-sts instances published + * to this realm in the WEB-INF/classes directory. \
The Soap Keystore Configuration entries describe the keystore location, + * aliases, \
and passwords necessary to enforce the SecurityPolicy binding specified in the wsdl \
files referenced in the + * soap-sts instances published in a given realm. Note that \
that the CXF runtime can reference keystore locations on the + * filesystem, as well \
as the classpath, so it is not mandatory that a keystore file be included in the .war \
file. In addition, + * for soap-sts instances protected by OpenAM session tokens \
protected by the transport binding, no keystore state is necessary. + *
+ * Note that the first thought would be to modify the openam-soap-sts-server .war \
file bundled in the OpenAM .war file + * (were the OpenAM build modified to effect \
said bundling), yet such an approach would prevent the creation of a + * soap-sts \
.war file with soap-sts bits modified post-13 release. In other words, it would be \
best if this class could + * create a soap-sts-agent-specific .war file based on \
soap-sts bits modified after the 13 release. Because there is no + * generic file \
upload/download functionality in OpenAM, and because keystore files must be included \
in the soap-sts .war file, there + * seems to be no other choice than to source .war \
file constituents from the filesystem, this despite the desire to + * remove \
filesystem dependencies to support cloud deployments. Given the need to source .war \
file constituents from the + * filesystem, it makes sense to also source the \
openam-soap-sts-server .war file from the filesystem, rather than from + * the OpenAM \
.war file, in order that this common-task may create .war files containing post-13 \
release soap-sts bits. + * Thus this class will write the customized .war file to the \
filesystem, just as the CreateFedlet common task does, but + * also source keystores, \
custom .wsdl files, and the openam-soap-sts-server .war file from the filesystem. + \
*/ +public class CreateSoapSTSDeployment extends Task {
+    @Override
+    public String execute(Locale locale, Map mapParams) throws WorkflowException {
+        return null;
+    }
+}
</ins></span></pre></div>
<a id="branchessts_soap_installopenamfederationOpenFMsrcmainresourcescomsunidentityconsolepropertyCreateSoapSTSDeploymentxml"></a>
 <div class="addfile"><h4>Added: \
branches/sts_soap_install/openam-federation/OpenFM/src/main/resources/com/sun/identity/console/propertyCreateSoapSTSDeployment.xml \
(0 => 14920)</h4> <pre class="diff"><span>
<span class="info">--- \
branches/sts_soap_install/openam-federation/OpenFM/src/main/resources/com/sun/identity/console/propertyCreateSoapSTSDeployment.xml	 \
                (rev 0)
+++ branches/sts_soap_install/openam-federation/OpenFM/src/main/resources/com/sun/identity/console/propertyCreateSoapSTSDeployment.xml	2015-07-31 \
22:04:57 UTC (rev 14920) </span><span class="lines">@@ -0,0 +1,93 @@
</span><ins>+&lt;!--
+  ~ 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 +  ~ License.
+  ~
+  ~ 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: &quot;Portions copyright [year] \
[name of copyright owner]&quot;. +  ~
+  ~ Copyright 2015 ForgeRock AS.
+  --&gt;
+
+&lt;!DOCTYPE propertysheet SYSTEM &quot;propertysheet.dtd&quot;&gt;
+
+&lt;propertysheet&gt;
+    &lt;section name=&quot;realm&quot; \
defaultValue=&quot;create.soap.sts.deployment.section.realm&quot;&gt; +        \
&lt;property required=&quot;true&quot;&gt; +            &lt;label \
name=&quot;lblRealm&quot; \
defaultValue=&quot;create.soap.sts.deployment.label.realm&quot; \
labelFor=&quot;tfRealm&quot; /&gt; +            &lt;cc name=&quot;tfRealm&quot; \
tagclass=&quot;com.sun.web.ui.taglib.html.CCDropDownMenuTag&quot;&gt; +            \
&lt;/cc&gt; +        &lt;/property&gt;
+    &lt;/section&gt;
+    &lt;section name=&quot;provider&quot; \
defaultValue=&quot;create.soap.sts.deployment.section.provider&quot;&gt; +        \
&lt;property required=&quot;true&quot;&gt; +            &lt;label \
name=&quot;lblDiscoveryUrl&quot; \
defaultValue=&quot;create.soap.sts.deployment.label.discovery.url&quot; +             \
labelFor=&quot;tfDiscoveryUrl&quot; /&gt; +            &lt;cc \
name=&quot;tfDiscoveryUrl&quot; \
tagclass=&quot;com.sun.web.ui.taglib.html.CCTextFieldTag&quot;&gt; +                \
&lt;attribute name=&quot;localizeDisplayFieldValue&quot; value=&quot;false&quot; \
/&gt; +                &lt;attribute name=&quot;size&quot; value=&quot;75&quot; /&gt;
+            &lt;/cc&gt;
+            &lt;fieldhelp name=&quot;helpDiscoveryUrl&quot; \
defaultValue=&quot;create.soap.sts.deployment.discovery.url.help.txt&quot;/&gt; +     \
&lt;/property&gt; +        &lt;property required=&quot;true&quot;&gt;
+            &lt;label name=&quot;lblProviderName&quot; \
defaultValue=&quot;create.soap.sts.deployment.label.provider.name&quot; +             \
labelFor=&quot;tfProviderName&quot; /&gt; +            &lt;cc \
name=&quot;tfProviderName&quot; \
tagclass=&quot;com.sun.web.ui.taglib.html.CCTextFieldTag&quot;&gt; +                \
&lt;attribute name=&quot;localizeDisplayFieldValue&quot; value=&quot;false&quot; \
/&gt; +                &lt;attribute name=&quot;size&quot; value=&quot;75&quot; /&gt;
+            &lt;/cc&gt;
+            &lt;fieldhelp name=&quot;helpProviderName&quot; \
defaultValue=&quot;create.soap.sts.deployment.provider.name.help.txt&quot;/&gt; +     \
&lt;/property&gt; +        &lt;property required=&quot;true&quot;&gt;
+            &lt;label name=&quot;lblImageUrl&quot; \
defaultValue=&quot;create.soap.sts.deployment.label.image.url&quot; +                 \
labelFor=&quot;tfImageUrl&quot; /&gt; +            &lt;cc name=&quot;tfImageUrl&quot; \
tagclass=&quot;com.sun.web.ui.taglib.html.CCTextFieldTag&quot;&gt; +                \
&lt;attribute name=&quot;localizeDisplayFieldValue&quot; value=&quot;false&quot; \
/&gt; +                &lt;attribute name=&quot;size&quot; value=&quot;75&quot; /&gt;
+            &lt;/cc&gt;
+            &lt;fieldhelp name=&quot;helpImageUrl&quot; \
defaultValue=&quot;create.soap.sts.deployment.image.url.help.txt&quot;/&gt; +        \
&lt;/property&gt; +    &lt;/section&gt;
+    &lt;section name=&quot;socialAuth&quot; \
defaultValue=&quot;create.soap.sts.deployment.section.setup&quot;&gt; +        \
&lt;property required=&quot;true&quot;&gt; +            &lt;label \
name=&quot;lblClientId&quot; \
defaultValue=&quot;create.soap.sts.deployment.label.client.id&quot; +                 \
labelFor=&quot;tfClientId&quot; /&gt; +            &lt;cc name=&quot;tfClientId&quot; \
tagclass=&quot;com.sun.web.ui.taglib.html.CCTextFieldTag&quot;&gt; +                \
&lt;attribute name=&quot;localizeDisplayFieldValue&quot; value=&quot;false&quot; \
/&gt; +                &lt;attribute name=&quot;size&quot; value=&quot;75&quot; /&gt;
+            &lt;/cc&gt;
+            &lt;fieldhelp name=&quot;helpClientId&quot; \
defaultValue=&quot;create.soap.sts.deployment.client.id.help.txt&quot;/&gt; +        \
&lt;/property&gt; +        &lt;property required=&quot;true&quot;&gt;
+            &lt;label name=&quot;lblClientSecret&quot; \
defaultValue=&quot;create.soap.sts.deployment.label.client.secret&quot; +             \
labelFor=&quot;tfClientSecret&quot; /&gt; +            &lt;cc \
name=&quot;tfClientSecret&quot; \
tagclass=&quot;com.sun.web.ui.taglib.html.CCPasswordTag&quot;&gt; +                \
&lt;attribute name=&quot;localizeDisplayFieldValue&quot; value=&quot;false&quot; \
/&gt; +                &lt;attribute name=&quot;size&quot; value=&quot;75&quot; /&gt;
+            &lt;/cc&gt;
+            &lt;fieldhelp name=&quot;helpClientSecret&quot; \
defaultValue=&quot;create.soap.sts.deployment.client.secret.help.txt&quot;/&gt; +     \
&lt;/property&gt; +        &lt;property required=&quot;true&quot;&gt;
+            &lt;label name=&quot;lblConfirmSecret&quot; \
defaultValue=&quot;create.soap.sts.deployment.label.confirm.secret&quot; +            \
labelFor=&quot;tfConfirmSecret&quot; /&gt; +            &lt;cc \
name=&quot;tfConfirmSecret&quot; \
tagclass=&quot;com.sun.web.ui.taglib.html.CCPasswordTag&quot;&gt; +                \
&lt;attribute name=&quot;localizeDisplayFieldValue&quot; value=&quot;false&quot; \
/&gt; +                &lt;attribute name=&quot;size&quot; value=&quot;75&quot; /&gt;
+            &lt;/cc&gt;
+        &lt;/property&gt;
+        &lt;property required=&quot;true&quot;&gt;
+            &lt;label name=&quot;lblRedirectUrl&quot; \
defaultValue=&quot;create.soap.sts.deployment.label.redirect.url&quot; +              \
labelFor=&quot;tfRedirectUrl&quot; /&gt; +            &lt;cc \
name=&quot;tfRedirectUrl&quot; \
tagclass=&quot;com.sun.web.ui.taglib.html.CCTextFieldTag&quot;&gt; +                \
&lt;attribute name=&quot;localizeDisplayFieldValue&quot; value=&quot;false&quot; \
/&gt; +                &lt;attribute name=&quot;size&quot; value=&quot;75&quot; /&gt;
+            &lt;/cc&gt;
+            &lt;fieldhelp name=&quot;helpRedirectUrl&quot; \
defaultValue=&quot;create.soap.sts.deployment.redirect.url.help.txt&quot;/&gt; +      \
&lt;/property&gt; +    &lt;/section&gt;
+&lt;/propertysheet&gt;
</ins></span></pre>
</div>
</div>
<div id="footer">Copyright (c) by ForgeRock. All rights reserved.</div>

</body>
</html>



_______________________________________________
CommitOpenAM mailing list
CommitOpenAM@forgerock.org
https://lists.forgerock.org/mailman/listinfo/commitopenam


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic