summaryrefslogtreecommitdiff
path: root/BKUOnline/src/main/webapp/SLRequestForm.html
blob: 8f7fe54fbb07710ee419672ea0e1cc47efbdd770 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
<!--
  Copyright 2008 Federal Chancellery Austria and
  Graz University of Technology

  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at

      http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
-->
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
    <head>
        <title>Security-Layer v1.2 Request Formular</title>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
        <link rel="shortcut icon" href="img/chip16.ico" type="image/x-icon">
        <script language="JavaScript" type="text/javascript">
            <!--
            function setAppletDimension(width, height)
            {
                document.forms.slform.appletWidth.value=width;
                document.forms.slform.appletHeight.value=height;
            }
            function setNOPRequest() {
                document.forms.slform.XMLRequest.value='<?xml version="1.0" encoding="UTF-8"?><NullOperationRequest xmlns="http://www.buergerkarte.at/namespaces/securitylayer/1.2#"/>';
            }
            
            //-->
        </script>
        <style type="text/css" media="all">@import "css/main.css";</style>
        <style type="text/css">
            fieldset {
                padding: 1em;
                margin: 1em;
                font: 80%/ 1 sans-serif;
                background-color: #F2EFE9;
                padding-left: 5em;
            }

            fieldset.submit {
                float: none;
                width: auto;
                border: 0 none #FFF;
                padding-left: 14em;
                border-style: none;
                background-color: transparent;
            }

            label {
                float: left;
                width: 8em;
                margin-right: 0.5em;
                padding-top: 0.2em;
                text-align: right;
                font-weight: bold;
                color: #000;
                padding-top: 0.2em;
            }

            legend {
                border: 1px solid;
                padding: 2px 6px
            }
        </style>

    </head>
    <body>
        <h1>Security-Layer v1.2 Request Formular</h1>
        <p>
        <form action="./http-security-layer-request" method="Post"
              enctype="application/x-www-form-urlencoded" name="slform">
            <!--input name="locale" value="es_MX" type="hidden" /-->
            <fieldset><legend>Enter XML Request</legend>
                <p><label for="XMLRequest">XML Request</label> <textarea
                        name="XMLRequest" rows=15 cols="60" id="XMLRequest">
<?xml version="1.0" encoding="UTF-8"?>
<sl:CreateXMLSignatureRequest 
   xmlns:sl="http://www.buergerkarte.at/namespaces/securitylayer/1.2#">
<sl:KeyboxIdentifier>SecureSignatureKeypair</sl:KeyboxIdentifier>
   <sl:DataObjectInfo Structure="detached">
     <sl:DataObject Reference="test.txt">
       <sl:XMLContent>Ich bin ein einfacher Text.</sl:XMLContent>
     </sl:DataObject>
    <sl:TransformsInfo>
      <sl:FinalDataMetaInfo>
       <sl:MimeType>text/plain</sl:MimeType>
       </sl:FinalDataMetaInfo>
    </sl:TransformsInfo>
  </sl:DataObjectInfo>
</sl:CreateXMLSignatureRequest> 
                </textarea></p>
                <!--
<?xml version="1.0" encoding="UTF-8" ?>
<sl:InfoboxReadRequest
    xmlns:sl="http://www.buergerkarte.at/namespaces/securitylayer/1.2#">
    <sl:InfoboxIdentifier>IdentityLink</sl:InfoboxIdentifier>
    <sl:BinaryFileParameters ContentIsXMLEntity="true" />
</sl:InfoboxReadRequest>
-->
<!--
<?xml version="1.0" encoding="UTF-8"?>
<sl:CreateXMLSignatureRequest
   xmlns:sl="http://www.buergerkarte.at/namespaces/securitylayer/1.2#">
  <sl:KeyboxIdentifier>SecureSignatureKeypair</sl:KeyboxIdentifier>
   <sl:DataObjectInfo Structure="enveloping">
     <sl:DataObject>
       <sl:XMLContent>Ich bin ein einfacher Text. llöäü߀</sl:XMLContent>
     </sl:DataObject>
    <sl:TransformsInfo>
      <sl:FinalDataMetaInfo>
       <sl:MimeType>text/plain</sl:MimeType>
       </sl:FinalDataMetaInfo>
    </sl:TransformsInfo>
  </sl:DataObjectInfo>
  <sl:DataObjectInfo Structure="enveloping">
     <sl:DataObject>
       <sl:XMLContent>
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <title>TestXHTML</title>
    <style type="text/css" media="screen">
      .heading { font-size: large; font-weight: bold; }
      .content1 { }
      .content2 { font-style: italic; }
      .content3 { font-family: serif; }
      .footer { font-size: small; }
    </style>
  </head>
  <body>
    <h3 class="heading">Heading3 large bold llöäü߀</h3>
    <p class="content1">Ich bin ein einfacher Text. llöäü߀</p>
    <p class="content2">Ich bin ein einfacher Text. llöäü߀</p>
    <p class="content3">Ich bin ein einfacher Text. llöäü߀</p>
    <p class="footer">Ich bin ein einfacher Text. llöäü߀</p>
  </body>
</html>
        </sl:XMLContent>
     </sl:DataObject>
    <sl:TransformsInfo>
      <sl:FinalDataMetaInfo>
       <sl:MimeType>application/xhtml+xml</sl:MimeType>
       </sl:FinalDataMetaInfo>
    </sl:TransformsInfo>
  </sl:DataObjectInfo>
</sl:CreateXMLSignatureRequest>
-->
<!--
<?xml version='1.0' encoding='UTF-8'?>
<sl10:InfoboxUpdateRequest xmlns:sl10='http://www.buergerkarte.at/namespaces/securitylayer/1.2#'>
    <sl10:InfoboxIdentifier>CardChannel</sl10:InfoboxIdentifier>
    <sl10:BinaryFileParameters>
        <sl10:XMLContent>
            <Script>
                <Reset cold='true' />
                <CommandAPDU sequence='1' of='2' expectedSW='9000'>00A4000C023F00</CommandAPDU>
                <CommandAPDU sequence='2' of='2' expectedSW='9000'>00B0820000</CommandAPDU>
            </Script>
        </sl10:XMLContent>
    </sl10:BinaryFileParameters>
</sl10:InfoboxUpdateRequest>
-->
            </fieldset>
            <fieldset><legend>Request Parameters</legend>
                <p>
                    <label for="appletGuiStyle">GUI Style</label>
                    <input type="radio" name="appletGuiStyle" value="tiny" onclick="setAppletDimension(152, 145)">tiny
                    <input type="radio" name="appletGuiStyle" value="simple" checked="checked" onclick="setAppletDimension(190,130)">simple
                    <input type="radio" name="appletGuiStyle" value="advanced" onclick="setAppletDimension(300, 180)">advanced
                </p>
                
                <p><label for="appletWidth">Applet Width</label> <input
                    name="appletWidth" value="190" id="appletWidth">
                <p><label for="appletHeight">Applet Height</label> <input
                    name="appletHeight" value="130" id="appletHeight">
                <p><label for="appletBackground">Applet Background</label> <input
                    name="appletBackground" value="" id="appletBackground">
                <p><label for="appletBackgroundColor">Applet Background Color</label> <input
                    name="appletBackgroundColor" value="" id="appletBackgroundColor">
                </p>

                <p>
                    <label for="appletPage">Applet Page</label>
                    <input type="radio" name="applet.jsp" value="BKUApplet" checked="checked">Default
                    <input type="radio" name="applet.jsp" value="BKUAppletAlternative">Alternative
                </p>

                <p>
                    <label for="appletPage">Locale</label>
                    <input value="de_AT" name="locale"/>
                </p>
<!--
                <p>
                    <label for="appletExtension">Extension</label>
                    <input type="radio" name="appletExtension" value="activation" onclick="setInfoboxUpdateRequest()">Activation
                    <input type="radio" name="appletExtension" value="pin" onclick="setAppletDimension(400, 200)">PIN Management
                </p>
-->

<!--
                <p><label for="RedirectURL">RedirectURL</label> <input
                    name="RedirectURL" value="" id="RedirectURL"></p>
                <p><label for="DataURL">DataURL</label> <input name="DataURL"
                    value="" id="DataURL"></p>
                <p><label for="StylesheetURL">StylesheetURL</label> <input
                    name="StylesheetURL" value="" id="StylesheetURL"></p>
                <p>
-->
                
            </fieldset>
            <fieldset class="submit"><input type="submit" class="submit"/></fieldset>
        </form>

    </body>
</html>