{{ message }}
This repository was archived by the owner on Jun 28, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 28
Expand file tree
/
Copy pathi18n.html
More file actions
811 lines (677 loc) · 66.9 KB
/
Copy pathi18n.html
File metadata and controls
811 lines (677 loc) · 66.9 KB
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
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
<!DOCTYPE html>
<!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Internationalization (i18n) — Stormpath Java Servlet Plugin 1.5.4 documentation</title>
<link rel="stylesheet" href="_static/css/theme.css" type="text/css" />
<link rel="stylesheet" href="_static/theme_overrides.css" type="text/css" />
<link rel="author" title="About these documents"
href="about.html"/>
<link rel="index" title="Index"
href="genindex.html"/>
<link rel="search" title="Search" href="search.html"/>
<link rel="top" title="Stormpath Java Servlet Plugin 1.5.4 documentation" href="index.html"/>
<link rel="next" title="Events" href="events.html"/>
<link rel="prev" title="Access Control" href="access-control.html"/>
<script src="_static/js/modernizr.min.js"></script>
<script src="https://cdn.optimizely.com/js/225847041.js"></script>
<script>
!function(f,b,e,v,n,t,s){if(f.fbq)return;n=f.fbq=function(){n.callMethod?
n.callMethod.apply(n,arguments):n.queue.push(arguments)};if(!f._fbq)f._fbq=n;
n.push=n;n.loaded=!0;n.version='2.0';n.queue=[];t=b.createElement(e);t.async=!0;
t.src=v;s=b.getElementsByTagName(e)[0];s.parentNode.insertBefore(t,s)}(window,
document,'script','https://connect.facebook.net/en_US/fbevents.js');
fbq('init', '986262161469311');
fbq('track', 'PageView');
</script>
<noscript><img height="1" width="1" style="display:none"
src="https://www.facebook.com/tr?id=986262161469311&ev=PageView&noscript=1"
/></noscript>
</head>
<body class="wy-body-for-nav" role="document">
<noscript><iframe src="//www.googletagmanager.com/ns.html?id=GTM-NQZZFW"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-NQZZFW');</script>
<div class="wy-grid-for-nav">
<nav data-toggle="wy-nav-shift" class="wy-nav-side">
<div class="wy-side-scroll">
<div class="wy-side-nav-search">
<a href="index.html" class="icon icon-home"> Stormpath Java Servlet Plugin
</a>
<div role="search">
<form id="rtd-search-form" class="wy-form" action="search.html" method="get">
<input type="text" name="q" placeholder="Search docs" />
<input type="hidden" name="check_keywords" value="yes" />
<input type="hidden" name="area" value="default" />
</form>
</div>
</div>
<div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
<ul class="current">
<li class="toctree-l1"><a class="reference internal" href="about.html">About</a><ul>
<li class="toctree-l2"><a class="reference internal" href="about.html#what-is-stormpath">What is Stormpath?</a></li>
<li class="toctree-l2"><a class="reference internal" href="about.html#what-is-the-project">What is the Stormpath Java Servlet Plugin?</a></li>
<li class="toctree-l2"><a class="reference internal" href="about.html#who-should-use-stormpath">Who should use Stormpath?</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="quickstart.html">Quickstart</a><ul>
<li class="toctree-l2"><a class="reference internal" href="quickstart.html#get-an-api-key">Get an API Key</a></li>
<li class="toctree-l2"><a class="reference internal" href="quickstart.html#add-the-project">Add the Stormpath Java Servlet Plugin</a></li>
<li class="toctree-l2"><a class="reference internal" href="quickstart.html#try-it">Try it!</a><ul>
<li class="toctree-l3"><a class="reference internal" href="quickstart.html#any-problems">Any Problems?</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="quickstart.html#next-steps">Next Steps</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="config.html">Configuration</a><ul>
<li class="toctree-l2"><a class="reference internal" href="config.html#no-config">No Config?</a></li>
<li class="toctree-l2"><a class="reference internal" href="config.html#web-xml">web.xml</a></li>
<li class="toctree-l2"><a class="reference internal" href="config.html#stormpath-properties">stormpath.properties</a><ul>
<li class="toctree-l3"><a class="reference internal" href="config.html#property-locations">Property Locations</a><ul>
<li class="toctree-l4"><a class="reference internal" href="config.html#plugin-web-stormpath-properties">1. Plugin web.stormpath.properties</a></li>
<li class="toctree-l4"><a class="reference internal" href="config.html#classpath-stormpath-properties">2. classpath:stormpath.properties</a></li>
<li class="toctree-l4"><a class="reference internal" href="config.html#web-inf-stormpath-properties">3. /WEB-INF/stormpath.properties</a></li>
<li class="toctree-l4"><a class="reference internal" href="config.html#servlet-context-parameters">4. Servlet Context Parameters</a></li>
<li class="toctree-l4"><a class="reference internal" href="config.html#environment-variables">5. Environment Variables</a></li>
<li class="toctree-l4"><a class="reference internal" href="config.html#jvm-system-properties">6. JVM System Properties</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="config.html#security-considerations-passwords-and-secret-values">Security Considerations: Passwords and secret values</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="config.html#stormpath-client">Stormpath Client</a><ul>
<li class="toctree-l3"><a class="reference internal" href="config.html#api-key">API Key</a></li>
<li class="toctree-l3"><a class="reference internal" href="config.html#http-proxy">HTTP Proxy</a></li>
<li class="toctree-l3"><a class="reference internal" href="config.html#authentication-scheme">Authentication Scheme</a></li>
<li class="toctree-l3"><a class="reference internal" href="config.html#usage">Usage</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="config.html#stormpath-application">Stormpath Application</a><ul>
<li class="toctree-l3"><a class="reference internal" href="config.html#id2">Usage</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="config.html#filters">Filters</a><ul>
<li class="toctree-l3"><a class="reference internal" href="config.html#default-filters">Default Filters</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="config.html#uris">URIs</a><ul>
<li class="toctree-l3"><a class="reference internal" href="config.html#uri-evaluation-priority">URI Evaluation Priority</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="registration.html">Registration</a><ul>
<li class="toctree-l2"><a class="reference internal" href="registration.html#overview">Overview</a></li>
<li class="toctree-l2"><a class="reference internal" href="registration.html#configuration">Configuration</a><ul>
<li class="toctree-l3"><a class="reference internal" href="registration.html#enabled">Enabled</a></li>
<li class="toctree-l3"><a class="reference internal" href="registration.html#uri">URI</a></li>
<li class="toctree-l3"><a class="reference internal" href="registration.html#next-uri">Next URI</a><ul>
<li class="toctree-l4"><a class="reference internal" href="registration.html#next-query-parameter">Next Query Parameter</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="registration.html#autologin">AutoLogin</a></li>
<li class="toctree-l3"><a class="reference internal" href="registration.html#form-fields">Form Fields</a><ul>
<li class="toctree-l4"><a class="reference internal" href="registration.html#form-field-definitions">Form Field Definitions</a></li>
<li class="toctree-l4"><a class="reference internal" href="registration.html#standard-form-fields">Standard Form Fields</a></li>
<li class="toctree-l4"><a class="reference internal" href="registration.html#custom-form-fields">Custom Form Fields</a></li>
<li class="toctree-l4"><a class="reference internal" href="registration.html#optional-form-fields">Optional Form Fields</a></li>
<li class="toctree-l4"><a class="reference internal" href="registration.html#disabling-form-fields">Disabling Form Fields</a></li>
<li class="toctree-l4"><a class="reference internal" href="registration.html#form-field-order">Form Field Order</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="registration.html#password-strength">Password Strength</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="registration.html#email-verification">Email Verification</a><ul>
<li class="toctree-l3"><a class="reference internal" href="registration.html#try-it">Try it!</a></li>
<li class="toctree-l3"><a class="reference internal" href="registration.html#verify-link-base-url">Verify Link Base URL</a></li>
<li class="toctree-l3"><a class="reference internal" href="registration.html#verify-next-uri">Verify Next URI</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="registration.html#internationalization-i18n">Internationalization (i18n)</a></li>
<li class="toctree-l2"><a class="reference internal" href="registration.html#pre-register-handler">Pre Register Handler</a></li>
<li class="toctree-l2"><a class="reference internal" href="registration.html#post-register-handler">Post Register Handler</a></li>
<li class="toctree-l2"><a class="reference internal" href="registration.html#events">Events</a><ul>
<li class="toctree-l3"><a class="reference internal" href="registration.html#registered-account">Registered Account</a></li>
<li class="toctree-l3"><a class="reference internal" href="registration.html#verified-account">Verified Account</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="login.html">Login</a><ul>
<li class="toctree-l2"><a class="reference internal" href="login.html#overview">Overview</a></li>
<li class="toctree-l2"><a class="reference internal" href="login.html#security-notice">Security Notice</a></li>
<li class="toctree-l2"><a class="reference internal" href="login.html#uri">URI</a><ul>
<li class="toctree-l3"><a class="reference internal" href="login.html#next-query-parameter">Next Query Parameter</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="login.html#next-uri">Next URI</a></li>
<li class="toctree-l2"><a class="reference internal" href="login.html#internationalization-i18n">Internationalization (i18n)</a></li>
<li class="toctree-l2"><a class="reference internal" href="login.html#pre-login-handler">Pre Login Handler</a></li>
<li class="toctree-l2"><a class="reference internal" href="login.html#post-login-handler">Post Login Handler</a></li>
<li class="toctree-l2"><a class="reference internal" href="login.html#events">Events</a></li>
<li class="toctree-l2"><a class="reference internal" href="login.html#authentication-state">Authentication State</a><ul>
<li class="toctree-l3"><a class="reference internal" href="login.html#saving-authentication-state">Saving Authentication State</a></li>
<li class="toctree-l3"><a class="reference internal" href="login.html#cookie-storage">Cookie Storage</a><ul>
<li class="toctree-l4"><a class="reference internal" href="login.html#cookie-config">Cookie Config</a></li>
<li class="toctree-l4"><a class="reference internal" href="login.html#jwt-creation">JWT Creation</a></li>
<li class="toctree-l4"><a class="reference internal" href="login.html#disabling-cookie-storage">Disabling Cookie Storage</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="login.html#custom-savers">Custom Savers</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="social.html">Social Login</a><ul>
<li class="toctree-l2"><a class="reference internal" href="social.html#facebook-login">Facebook Login</a><ul>
<li class="toctree-l3"><a class="reference internal" href="social.html#create-a-facebook-app">Create a Facebook App</a></li>
<li class="toctree-l3"><a class="reference internal" href="social.html#specify-allowed-urls">Specify Allowed URLs</a></li>
<li class="toctree-l3"><a class="reference internal" href="social.html#create-a-facebook-directory">Create a Facebook Directory</a></li>
<li class="toctree-l3"><a class="reference internal" href="social.html#test-it-out">Test it Out</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="social.html#google-login">Google Login</a><ul>
<li class="toctree-l3"><a class="reference internal" href="social.html#create-a-google-project">Create a Google Project</a></li>
<li class="toctree-l3"><a class="reference internal" href="social.html#enable-google-login">Enable Google Login</a></li>
<li class="toctree-l3"><a class="reference internal" href="social.html#create-oauth-credentials">Create OAuth Credentials</a></li>
<li class="toctree-l3"><a class="reference internal" href="social.html#create-a-google-directory">Create a Google Directory</a></li>
<li class="toctree-l3"><a class="reference internal" href="social.html#id1">Test it Out</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="social.html#linkedin-login">LinkedIn Login</a><ul>
<li class="toctree-l3"><a class="reference internal" href="social.html#create-a-linkedin-application">Create a LinkedIn Application</a></li>
<li class="toctree-l3"><a class="reference internal" href="social.html#enable-linkedin-permissions">Enable LinkedIn Permissions</a></li>
<li class="toctree-l3"><a class="reference internal" href="social.html#create-a-linkedin-directory">Create a LinkedIn Directory</a></li>
<li class="toctree-l3"><a class="reference internal" href="social.html#id2">Test it Out</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="social.html#json-api">JSON API</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="forgot-password.html">Forgot Password</a><ul>
<li class="toctree-l2"><a class="reference internal" href="forgot-password.html#overview">Overview</a></li>
<li class="toctree-l2"><a class="reference internal" href="forgot-password.html#configure-the-workflow">Configure the Workflow</a></li>
<li class="toctree-l2"><a class="reference internal" href="forgot-password.html#try-it">Try it!</a></li>
<li class="toctree-l2"><a class="reference internal" href="forgot-password.html#forgot-uri">Forgot URI</a></li>
<li class="toctree-l2"><a class="reference internal" href="forgot-password.html#forgot-next-uri">Forgot Next URI</a></li>
<li class="toctree-l2"><a class="reference internal" href="forgot-password.html#change-password-uri">Change Password URI</a></li>
<li class="toctree-l2"><a class="reference internal" href="forgot-password.html#change-password-next-uri">Change Password Next URI</a></li>
<li class="toctree-l2"><a class="reference internal" href="forgot-password.html#i18n">i18n</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="logout.html">Logout</a><ul>
<li class="toctree-l2"><a class="reference internal" href="logout.html#uri">URI</a><ul>
<li class="toctree-l3"><a class="reference internal" href="logout.html#next-query-parameter">Next Query Parameter</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="logout.html#next-uri">Next URI</a></li>
<li class="toctree-l2"><a class="reference internal" href="logout.html#events">Events</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="request-authentication.html">HTTP Request Authentication</a><ul>
<li class="toctree-l2"><a class="reference internal" href="request-authentication.html#http-basic-authentication">HTTP Basic Authentication</a></li>
<li class="toctree-l2"><a class="reference internal" href="request-authentication.html#token-authentication">Token Authentication</a><ul>
<li class="toctree-l3"><a class="reference internal" href="request-authentication.html#get-a-token">Get a Token</a><ul>
<li class="toctree-l4"><a class="reference internal" href="request-authentication.html#curl">cURL</a></li>
<li class="toctree-l4"><a class="reference internal" href="request-authentication.html#html-form-and-ajax">HTML Form and AJAX</a></li>
<li class="toctree-l4"><a class="reference internal" href="request-authentication.html#origin-or-referer-required">Origin or Referer Required</a></li>
<li class="toctree-l4"><a class="reference internal" href="request-authentication.html#https-required">HTTPS Required</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="request-authentication.html#api-key-authentication">API Key Authentication</a><ul>
<li class="toctree-l3"><a class="reference internal" href="request-authentication.html#determining-api-key-authentication">Determining API Key Authentication</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="request.html">Request Context</a><ul>
<li class="toctree-l2"><a class="reference internal" href="request.html#current-user-account">Current User Account</a><ul>
<li class="toctree-l3"><a class="reference internal" href="request.html#account-resolver">Account Resolver</a></li>
<li class="toctree-l3"><a class="reference internal" href="request.html#request-attributes">Request Attributes</a><ul>
<li class="toctree-l4"><a class="reference internal" href="request.html#request-attribute-names">Request Attribute Names</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="request.html#http-servlet-request-api">HTTP Servlet Request API</a><ul>
<li class="toctree-l4"><a class="reference internal" href="request.html#httpservletrequest-getremoteuser">HttpServletRequest getRemoteUser()</a></li>
<li class="toctree-l4"><a class="reference internal" href="request.html#httpservletrequest-getuserprincipal">HttpServletRequest getUserPrincipal()</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="request.html#stormpath-application">Stormpath Application</a><ul>
<li class="toctree-l3"><a class="reference internal" href="request.html#application-resolver">Application Resolver</a></li>
<li class="toctree-l3"><a class="reference internal" href="request.html#id2">Request Attributes</a><ul>
<li class="toctree-l4"><a class="reference internal" href="request.html#default-request-attribute-name">Default Request Attribute Name</a></li>
<li class="toctree-l4"><a class="reference internal" href="request.html#custom-request-attribute-names">Custom Request Attribute Names</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="request.html#stormpath-client">Stormpath Client</a><ul>
<li class="toctree-l3"><a class="reference internal" href="request.html#client-resolver">Client Resolver</a></li>
<li class="toctree-l3"><a class="reference internal" href="request.html#id3">Request Attributes</a><ul>
<li class="toctree-l4"><a class="reference internal" href="request.html#id4">Default Request Attribute Name</a></li>
<li class="toctree-l4"><a class="reference internal" href="request.html#id5">Custom Request Attribute Names</a></li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="access-control.html">Access Control</a><ul>
<li class="toctree-l2"><a class="reference internal" href="access-control.html#authentication">Authentication</a><ul>
<li class="toctree-l3"><a class="reference internal" href="access-control.html#unauthenticatedhandler">UnauthenticatedHandler</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="access-control.html#exclusions">Exclusions</a></li>
</ul>
</li>
<li class="toctree-l1 current"><a class="current reference internal" href="#">Internationalization (i18n)</a><ul>
<li class="toctree-l2"><a class="reference internal" href="#languages">Languages</a></li>
<li class="toctree-l2"><a class="reference internal" href="#request-locale">Request Locale</a></li>
<li class="toctree-l2"><a class="reference internal" href="#jsp-tag-library">JSP Tag Library</a></li>
<li class="toctree-l2"><a class="reference internal" href="#i18n-properties">i18n.properties</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="events.html">Events</a><ul>
<li class="toctree-l2"><a class="reference internal" href="events.html#requesteventlistener">RequestEventListener</a></li>
<li class="toctree-l2"><a class="reference internal" href="events.html#id2">Events</a></li>
<li class="toctree-l2"><a class="reference internal" href="events.html#listener-best-practices">Listener Best Practices</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="caching.html">Caching</a><ul>
<li class="toctree-l2"><a class="reference internal" href="caching.html#in-process-cache">In-Process Cache</a></li>
<li class="toctree-l2"><a class="reference internal" href="caching.html#disable-caching">Disable Caching</a><ul>
<li class="toctree-l3"><a class="reference internal" href="caching.html#default-ttl">Default TTL</a></li>
<li class="toctree-l3"><a class="reference internal" href="caching.html#default-tti">Default TTI</a></li>
<li class="toctree-l3"><a class="reference internal" href="caching.html#cache-regions">Cache Regions</a></li>
<li class="toctree-l3"><a class="reference internal" href="caching.html#client-cache-regions">Client Cache Regions</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="caching.html#shared-cache">Shared Cache</a><ul>
<li class="toctree-l3"><a class="reference internal" href="caching.html#nonce-cache-region">Nonce Cache Region</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="idsite.html">ID Site</a><ul>
<li class="toctree-l2"><a class="reference internal" href="idsite.html#how-does-it-work">How Does It Work?</a></li>
<li class="toctree-l2"><a class="reference internal" href="idsite.html#enable-id-site">Enable ID Site</a></li>
<li class="toctree-l2"><a class="reference internal" href="idsite.html#configure-your-application">Configure Your Application</a></li>
<li class="toctree-l2"><a class="reference internal" href="idsite.html#try-it">Try It!</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="views.html">Custom Views</a><ul>
<li class="toctree-l2"><a class="reference internal" href="views.html#jsp-views">JSP Views</a></li>
<li class="toctree-l2"><a class="reference internal" href="views.html#css">CSS</a></li>
<li class="toctree-l2"><a class="reference internal" href="views.html#internationalization-i18n">Internationalization (i18n)</a></li>
<li class="toctree-l2"><a class="reference internal" href="views.html#change-a-default-view">Change a Default View</a></li>
<li class="toctree-l2"><a class="reference internal" href="views.html#view-template">View Template</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="appendix.html">Appendix</a><ul>
<li class="toctree-l2"><a class="reference internal" href="appendix/web-stormpath-properties.html">web.stormpath.properties</a></li>
<li class="toctree-l2"><a class="reference internal" href="appendix/i18n-properties.html">i18n.properties</a></li>
<li class="toctree-l2"><a class="reference internal" href="appendix/stormpath-css.html">stormpath.css</a></li>
<li class="toctree-l2"><a class="reference internal" href="appendix/change-password.html">/WEB-INF/jsp/stormpath/change-password.jsp</a></li>
<li class="toctree-l2"><a class="reference internal" href="appendix/forgot-password.html">/WEB-INF/jsp/stormpath/forgot-password.jsp</a></li>
<li class="toctree-l2"><a class="reference internal" href="appendix/login.html">/WEB-INF/jsp/stormpath/login.jsp</a></li>
<li class="toctree-l2"><a class="reference internal" href="appendix/register.html">/WEB-INF/jsp/stormpath/register.jsp</a></li>
<li class="toctree-l2"><a class="reference internal" href="appendix/verify.html">/WEB-INF/jsp/stormpath/verify.jsp</a></li>
</ul>
</li>
</ul>
</div>
</div>
</nav>
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
<nav class="wy-nav-top" role="navigation" aria-label="top navigation">
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
<a href="index.html">Stormpath Java Servlet Plugin</a>
</nav>
<div class="wy-nav-content">
<div class="rst-content">
<div role="navigation" aria-label="breadcrumbs navigation">
<ul class="wy-breadcrumbs">
<li><a href="index.html">Docs</a> »</li>
<li>Internationalization (i18n)</li>
<li class="wy-breadcrumbs-aside">
</li>
</ul>
<hr/>
</div>
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
<div itemprop="articleBody">
<blockquote>
<div></div></blockquote>
<div class="section" id="internationalization-i18n">
<span id="i18n"></span><h1>Internationalization (i18n)<a class="headerlink" href="#internationalization-i18n" title="Permalink to this headline">¶</a></h1>
<p>All of the default views are fully internationalized using a standard <a class="reference external" href="http://docs.oracle.com/javase/tutorial/i18n/resbundle/concept.html">Java Resource Bundle</a> named <code class="docutils literal"><span class="pre">com.stormpath.sdk.servlet.i18n</span></code></p>
<div class="section" id="languages">
<h2>Languages<a class="headerlink" href="#languages" title="Permalink to this headline">¶</a></h2>
<p>The Stormpath Java Servlet Plugin .jar comes with one default <a class="reference internal" href="#i18n-properties-file"><span class="std std-ref">English bundle file</span></a>: <code class="docutils literal"><span class="pre">/com/stormpath/sdk/servlet/i18n.properties</span></code>.</p>
<p>You can add other languages as follows:</p>
<ol class="arabic simple">
<li>Create a <code class="docutils literal"><span class="pre">com.stormpath.sdk.servlet</span></code> package in your project. It must have this exact structure and name.</li>
<li>In this <code class="docutils literal"><span class="pre">com/stormpath/sdk/servlet</span></code> package directory, add one or more <code class="docutils literal"><span class="pre">i18n_LOCALE.properties</span></code> files to this package, for example, <code class="docutils literal"><span class="pre">i18n_es.properties</span></code> for Spanish (or even <code class="docutils literal"><span class="pre">i18n_es_ES.properties</span></code> for Spain’s dialect of Spanish and <code class="docutils literal"><span class="pre">i18n_es_MX.properties</span></code> for Mexican dialect of Spanish, etc).</li>
<li>In each locale-specific file, re-define each <a class="reference internal" href="#i18n-properties-file"><span class="std std-ref">i18n property</span></a> value in that language.</li>
</ol>
<div class="admonition note">
<p class="first admonition-title">Note</p>
<p class="last">If you create new translations, we’d love it if you would contribute them to the project as a <a class="reference external" href="https://github.com/stormpath/stormpath-sdk-java/pulls">pull request</a>. The Stormpath community would be grateful!</p>
</div>
</div>
<div class="section" id="request-locale">
<h2>Request Locale<a class="headerlink" href="#request-locale" title="Permalink to this headline">¶</a></h2>
<p>The locale used to render messages during a request is determined by a <code class="docutils literal"><span class="pre">Resolver<Locale></span></code> instance, specified via the <code class="docutils literal"><span class="pre">stormpath.web.locale.resolver</span></code> configuration property. For example, the default implementation returns <a class="reference external" href="http://docs.oracle.com/javaee/7/api/javax/servlet/ServletRequest.html#getLocale()">ServletRequest.getLocale()</a>:</p>
<div class="highlight-properties"><div class="highlight"><pre><span></span><span class="na">stormpath.web.locale.resolver</span> <span class="o">=</span> <span class="s">com.stormpath.sdk.servlet.i18n.DefaultLocaleResolver</span>
</pre></div>
</div>
<p>You can override this value by specifying the fully qualified class name of a class that implements the <code class="docutils literal"><span class="pre">com.stormpath.sdk.servlet.http.Resolver<Locale></span></code> interface. That implementation will be instantiated and used instead.</p>
</div>
<div class="section" id="jsp-tag-library">
<h2>JSP Tag Library<a class="headerlink" href="#jsp-tag-library" title="Permalink to this headline">¶</a></h2>
<p>You can reference any of the stormpath i18n properties below in a JSP page by importing the Stormpath tag library:</p>
<div class="highlight-jsp"><div class="highlight"><pre><span></span><span class="k"><%@</span> <span class="n">taglib</span> <span class="n">prefix</span><span class="o">=</span><span class="s">"sp"</span> <span class="n">uri</span><span class="o">=</span><span class="s">"http://stormpath.com/jsp/tags"</span> <span class="k">%></span>
</pre></div>
</div>
<p>Then you can reference the message key as necessary in the page content, for example:</p>
<div class="highlight-jsp"><div class="highlight"><pre><span></span><span class="nt"><span><sp:message</span> <span class="na">key=</span><span class="s">"stormpath.web.register.title"</span><span class="nt">/></span></span>
</pre></div>
</div>
<p>The <code class="docutils literal"><span class="pre"><sp:message></span></code> tag works just like the standard template library’s <code class="docutils literal"><span class="pre"><fmt:message></span></code> tag, but <code class="docutils literal"><span class="pre"><sp:message></span></code> will automatically use the <code class="docutils literal"><span class="pre">com.stormpath.sdk.servlet.i18n</span></code> message bundle in addition to allowing for a flexible locale resolution strategy per the <code class="docutils literal"><span class="pre">stormpath.web.locale.resolver</span></code> mentioned above.</p>
</div>
<div class="section" id="i18n-properties">
<span id="i18n-properties-file"></span><h2>i18n.properties<a class="headerlink" href="#i18n-properties" title="Permalink to this headline">¶</a></h2>
<div class="highlight-properties"><div class="highlight"><pre><span></span><span class="c">#</span>
<span class="c"># Copyright 2015 Stormpath, Inc.</span>
<span class="c">#</span>
<span class="c"># Licensed under the Apache License, Version 2.0 (the "License");</span>
<span class="c"># you may not use this file except in compliance with the License.</span>
<span class="c"># You may obtain a copy of the License at</span>
<span class="c">#</span>
<span class="c"># http://www.apache.org/licenses/LICENSE-2.0</span>
<span class="c">#</span>
<span class="c"># Unless required by applicable law or agreed to in writing, software</span>
<span class="c"># distributed under the License is distributed on an "AS IS" BASIS,</span>
<span class="c"># WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</span>
<span class="c"># See the License for the specific language governing permissions and</span>
<span class="c"># limitations under the License.</span>
<span class="c">#</span>
<span class="c"># ==================================================</span>
<span class="c"># Login Page</span>
<span class="c"># ==================================================</span>
<span class="na">stormpath.web.login.title</span> <span class="o">=</span> <span class="s">Login</span>
<span class="c"># suppress inspection "UnusedProperty"</span>
<span class="na">stormpath.web.login.status.verified</span> <span class="o">=</span> <span class="s">You have successfully verified your account. You may now login.</span>
<span class="c"># suppress inspection "UnusedProperty"</span>
<span class="na">stormpath.web.login.status.forgot</span> <span class="o">=</span> <span class="s">If you entered a valid account email address, you will receive an email shortly. Please check your email inbox to continue.</span>
<span class="na">stormpath.web.login.status.logout</span> <span class="o">=</span> <span class="s">You have successfully logged out.</span>
<span class="na">stormpath.web.login.status.changed</span> <span class="o">=</span> <span class="s">You have successfully changed your password. You may now login.</span>
<span class="na">stormpath.web.login.status.authcReqd</span> <span class="o">=</span> <span class="s">Please login to continue.</span>
<span class="na">stormpath.web.login.form.title</span> <span class="o">=</span> <span class="s">Login</span>
<span class="na">stormpath.web.login.form.titleWithRegister</span> <span class="o">=</span> <span class="s">Login or {0}</span>
<span class="na">stormpath.web.login.form.registerLink.text</span> <span class="o">=</span> <span class="s">Create Account</span>
<span class="na">stormpath.web.login.form.button.value</span> <span class="o">=</span> <span class="s">Login</span>
<span class="na">stormpath.web.login.form.resetLink.text</span> <span class="o">=</span> <span class="s">Forgot Password?</span>
<span class="na">stormpath.web.login.form.verifyEmail.text</span> <span class="o">=</span> <span class="s">Resend Verification Email?</span>
<span class="na">stormpath.web.login.form.fields.login.label</span> <span class="o">=</span> <span class="s">Username or Email</span>
<span class="na">stormpath.web.login.form.fields.login.placeholder</span> <span class="o">=</span> <span class="s">Username or Email</span>
<span class="na">stormpath.web.login.form.fields.login.required</span> <span class="o">=</span> <span class="s">Username or Email is required.</span>
<span class="na">stormpath.web.login.form.fields.password.label</span> <span class="o">=</span> <span class="s">Password</span>
<span class="na">stormpath.web.login.form.fields.password.placeholder</span> <span class="o">=</span> <span class="s">Password</span>
<span class="na">stormpath.web.login.form.fields.password.required</span> <span class="o">=</span> <span class="s">Password is required.</span>
<span class="na">stormpath.web.login.form.errors.invalidLogin</span> <span class="o">=</span> <span class="s">Invalid username or password.</span>
<span class="na">stormpath.web.login.form.status.unverified</span> <span class="o">=</span> <span class="s">Your account verification email has been sent! Before you can log into your account, you need to activate your account by clicking the link we sent to your inbox.</span>
<span class="na">stormpath.web.login.form.status.verified</span> <span class="o">=</span> <span class="s">Your Account Has Been Verified. You may now login.</span>
<span class="na">stormpath.web.login.form.status.created</span> <span class="o">=</span> <span class="s">Your Account Has Been Created. You may now login.</span>
<span class="na">stormpath.web.login.form.status.forgot</span> <span class="o">=</span> <span class="s">Password Reset Requested. If an account exists for the email provided, you will receive an email shortly.</span>
<span class="na">stormpath.web.login.form.status.reset</span> <span class="o">=</span> <span class="s">Password Reset Successfully. You can now login with your new password.</span>
<span class="c"># ==================================================</span>
<span class="c"># Register Page</span>
<span class="c"># ==================================================</span>
<span class="na">stormpath.web.register.title</span> <span class="o">=</span> <span class="s">Create Account</span>
<span class="na">stormpath.web.register.form.button.value</span> <span class="o">=</span> <span class="s">Create Account</span>
<span class="na">stormpath.web.register.form.loginLink.text</span> <span class="o">=</span> <span class="s">Back to Login</span>
<span class="na">stormpath.web.register.form.errors.default</span> <span class="o">=</span> <span class="s">Oops! Unable to register you! Please contact support.</span>
<span class="na">stormpath.web.register.form.fields.email.label</span> <span class="o">=</span> <span class="s">Email</span>
<span class="na">stormpath.web.register.form.fields.email.placeholder</span> <span class="o">=</span> <span class="s">Email</span>
<span class="na">stormpath.web.register.form.fields.email.required</span> <span class="o">=</span> <span class="s">Email is required.</span>
<span class="na">stormpath.web.register.form.fields.email.invalid</span> <span class="o">=</span> <span class="s">Please enter a valid email address.</span>
<span class="na">stormpath.web.register.form.fields.username.label</span> <span class="o">=</span> <span class="s">Username</span>
<span class="na">stormpath.web.register.form.fields.username.placeholder</span> <span class="o">=</span> <span class="s">Username</span>
<span class="na">stormpath.web.register.form.fields.username.required</span> <span class="o">=</span> <span class="s">Username is required.</span>
<span class="na">stormpath.web.register.form.fields.givenName.label</span> <span class="o">=</span> <span class="s">First Name</span>
<span class="na">stormpath.web.register.form.fields.givenName.placeholder</span> <span class="o">=</span> <span class="s">First Name</span>
<span class="na">stormpath.web.register.form.fields.givenName.required</span> <span class="o">=</span> <span class="s">First Name is required.</span>
<span class="na">stormpath.web.register.form.fields.middleName.label</span> <span class="o">=</span> <span class="s">Middle Name</span>
<span class="na">stormpath.web.register.form.fields.middleName.placeholder</span> <span class="o">=</span> <span class="s">Middle Name</span>
<span class="na">stormpath.web.register.form.fields.middleName.required</span> <span class="o">=</span> <span class="s">Middle Name is required.</span>
<span class="na">stormpath.web.register.form.fields.surname.label</span> <span class="o">=</span> <span class="s">Last Name</span>
<span class="na">stormpath.web.register.form.fields.surname.placeholder</span> <span class="o">=</span> <span class="s">Last Name</span>
<span class="na">stormpath.web.register.form.fields.surname.required</span> <span class="o">=</span> <span class="s">Last Name is required.</span>
<span class="na">stormpath.web.register.form.fields.password.label</span> <span class="o">=</span> <span class="s">Password</span>
<span class="na">stormpath.web.register.form.fields.password.placeholder</span> <span class="o">=</span> <span class="s">Password</span>
<span class="na">stormpath.web.register.form.fields.password.required</span> <span class="o">=</span> <span class="s">Password is required.</span>
<span class="na">stormpath.web.register.form.fields.confirmPassword.label</span> <span class="o">=</span> <span class="s">Confirm Password</span>
<span class="na">stormpath.web.register.form.fields.confirmPassword.placeholder</span> <span class="o">=</span> <span class="s">Confirm Password</span>
<span class="na">stormpath.web.register.form.fields.confirmPassword.required</span> <span class="o">=</span> <span class="s">Confirm Password is required.</span>
<span class="na">stormpath.web.register.form.errors.passwordMismatch</span> <span class="o">=</span> <span class="s">Password values do not match.</span>
<span class="c"># ==================================================</span>
<span class="c"># Forgot Password Page (Password Reset Page)</span>
<span class="c"># ==================================================</span>
<span class="na">stormpath.web.forgotPassword.title</span> <span class="o">=</span> <span class="s">Forgot your password?</span>
<span class="na">stormpath.web.forgotPassword.form.title</span> <span class="o">=</span> <span class="s">Forgot your password?</span>
<span class="na">stormpath.web.forgotPassword.form.instructions</span> <span class="o">=</span> <span class="s">Enter your email address below to reset your password. You will \</span>
<span class="s"> be sent an email which you will need to open to continue. You may need to check your spam folder.</span>
<span class="na">stormpath.web.forgotPassword.form.fields.email.label</span> <span class="o">=</span> <span class="s">Email</span>
<span class="na">stormpath.web.forgotPassword.form.fields.email.placeholder</span> <span class="o">=</span> <span class="s">Email</span>
<span class="na">stormpath.web.forgotPassword.form.fields.email.required</span> <span class="o">=</span> <span class="s">Email is required.</span>
<span class="na">stormpath.web.forgotPassword.form.button.value</span> <span class="o">=</span> <span class="s">Send Email</span>
<span class="na">stormpath.web.forgotPassword.form.loginLink.text</span> <span class="o">=</span> <span class="s">Back to Login</span>
<span class="na">stormpath.web.forgotPassword.form.status.invalid_sptoken</span> <span class="o">=</span> <span class="s">The password reset link you tried to use is no longer valid. Please request a new link from the form below.</span>
<span class="c"># ==================================================</span>
<span class="c"># Change Password Page</span>
<span class="c"># ==================================================</span>
<span class="na">stormpath.web.changePassword.title</span> <span class="o">=</span> <span class="s">Change Your Password</span>
<span class="na">stormpath.web.changePassword.form.title</span> <span class="o">=</span> <span class="s">Change Your Password</span>
<span class="na">stormpath.web.changePassword.form.instructions</span> <span class="o">=</span> <span class="s">Enter your new account password below. Once confirmed, \</span>
<span class="s"> you''ll be logged into your account and your new password will be active.</span>
<span class="na">stormpath.web.changePassword.form.errors.strength</span> <span class="o">=</span> <span class="s">Password is not strong enough. Try making it longer or adding some \</span>
<span class="s"> numbers, punctuation or special characters.</span>
<span class="na">stormpath.web.changePassword.form.errors.mismatch</span> <span class="o">=</span> <span class="s">Password values do not match.</span>
<span class="na">stormpath.web.changePassword.form.errors.invalid</span> <span class="o">=</span> <span class="s">Invalid password reset link. If you like, you may try again and <a href="{0}">get a new password reset link</a>.</span>
<span class="na">stormpath.web.changePassword.form.errors.default</span> <span class="o">=</span> <span class="s">Your password reset attempt has failed. This might happen for several \</span>
<span class="s"> reasons: your reset token might be expired, it might have already been used, or we may just be having issues right \</span>
<span class="s"> now. Please try again, and if you''re still having problems, please contact the site administrator for help!</span>
<span class="na">stormpath.web.changePassword.form.errors.invalid_token</span> <span class="o">=</span> <span class="s">Invalid sptoken.</span>
<span class="na">stormpath.web.changePassword.form.errors.no_token</span> <span class="o">=</span> <span class="s">sptoken parameter not provided.</span>
<span class="na">stormpath.web.changePassword.form.fields.password.label</span> <span class="o">=</span> <span class="s">Password</span>
<span class="na">stormpath.web.changePassword.form.fields.password.placeholder</span> <span class="o">=</span> <span class="s">Password</span>
<span class="na">stormpath.web.changePassword.form.fields.password.required</span> <span class="o">=</span> <span class="s">Password is required.</span>
<span class="na">stormpath.web.changePassword.form.fields.confirmPassword.label</span> <span class="o">=</span> <span class="s">Confirm Password</span>
<span class="na">stormpath.web.changePassword.form.fields.confirmPassword.placeholder</span> <span class="o">=</span> <span class="s">Confirm Password</span>
<span class="na">stormpath.web.changePassword.form.fields.confirmPassword.required</span> <span class="o">=</span> <span class="s">Password Confirmation is required.</span>
<span class="na">stormpath.web.changePassword.form.button.value</span> <span class="o">=</span> <span class="s">Submit</span>
<span class="na">stormpath.web.changePassword.form.loginLink.text</span> <span class="o">=</span> <span class="s">Back to Login</span>
<span class="c"># ==================================================</span>
<span class="c"># Unauthorized Page</span>
<span class="c"># ==================================================</span>
<span class="na">stormpath.web.unauthorized.title</span> <span class="o">=</span> <span class="s">Unauthorized</span>
<span class="na">stormpath.web.unauthorized.description</span> <span class="o">=</span> <span class="s">You are not authorized to view the requested page.</span>
<span class="na">stormpath.web.unauthorized.description2</span> <span class="o">=</span> <span class="s">If this is unexpected, please contact your site administrator for help, \</span>
<span class="s"> otherwise click your web browser''s back button to return to the previous page.</span>
<span class="c"># ==================================================</span>
<span class="c"># Verify Email Page</span>
<span class="c"># ==================================================</span>
<span class="na">stormpath.web.verifyEmail.title</span> <span class="o">=</span> <span class="s">Resend Email Verification</span>
<span class="na">stormpath.web.verifyEmail.form.title</span> <span class="o">=</span> <span class="s">Didn''t receive your account verification email?</span>
<span class="na">stormpath.web.verifyEmail.form.instructions</span> <span class="o">=</span> <span class="s">Enter your email address below and we''ll resend your account \</span>
<span class="s"> verification email. You will be sent an email which you will need to open to continue. You may need to check your \</span>
<span class="s"> spam folder.</span>
<span class="na">stormpath.web.verifyEmail.form.fields.login.label</span> <span class="o">=</span> <span class="s">Login</span>
<span class="na">stormpath.web.verifyEmail.form.fields.login.placeholder</span> <span class="o">=</span> <span class="s">Login</span>
<span class="na">stormpath.web.verifyEmail.form.fields.login.required</span> <span class="o">=</span> <span class="s">Login is required.</span>
<span class="na">stormpath.web.verifyEmail.form.fields.email.label</span> <span class="o">=</span> <span class="s">Email</span>
<span class="na">stormpath.web.verifyEmail.form.fields.email.placeholder</span> <span class="o">=</span> <span class="s">Email</span>
<span class="na">stormpath.web.verifyEmail.form.fields.email.required</span> <span class="o">=</span> <span class="s">Email is required.</span>
<span class="na">stormpath.web.verifyEmail.form.button.value</span> <span class="o">=</span> <span class="s">Send Email</span>
<span class="na">stormpath.web.verifyEmail.form.loginLink.text</span> <span class="o">=</span> <span class="s">Back to Login</span>
<span class="na">stormpath.web.verifyEmail.form.errors.invalidLink</span> <span class="o">=</span> <span class="s">This verification link is no longer valid. Please request a new link from the form below.</span>
<span class="na">stormpath.web.verifyEmail.form.errors.noToken</span> <span class="o">=</span> <span class="s">sptoken parameter not provided.</span>
<span class="na">stormpath.web.verifyEmail.form.errors.fieldConflict</span> <span class="o">=</span> <span class="s">Values were specified for both login and email. Please try again with only login specified.</span>
<span class="c">#TODO the spec doesn't provide the error message for posting unknown fields</span>
<span class="na">stormpath.web.form.fields.unknown</span><span class="o">=</span><span class="s">Unknown field [{0}]</span>
<span class="c"># ==================================================</span>
<span class="c"># Stormpath API Errors: #763</span>
<span class="c"># The messages for these keys are from https://docs.stormpath.com/rest/product-guide/latest/errors.html</span>
<span class="c"># When error codes are not listed in the docs, I (@mraible) used the message from api-errors.properties.</span>
<span class="c"># For those messages with arguments, I modified the message to remove the argument. This is noted in comments below.</span>
<span class="c"># ==================================================</span>
<span class="na">stormpath.web.errors.1100</span> <span class="o">=</span> <span class="s">The specified HTTP request method is not supported.</span>
<span class="na">stormpath.web.errors.1101</span> <span class="o">=</span> <span class="s">Bad request ‘Content-Type’. This error will specify what the expected value is.</span>
<span class="na">stormpath.web.errors.1900</span> <span class="o">=</span> <span class="s">Subscription upgrade required. To upgrade your subscription, go to the “My Subscription” section of the Stormpath Admin Console.</span>
<span class="na">stormpath.web.errors.1902</span> <span class="o">=</span> <span class="s">Application limit reached. Please add more Applications in the “My Subscription” section of the Stormpath Admin Console.</span>
<span class="na">stormpath.web.errors.1903</span> <span class="o">=</span> <span class="s">The specified subscription level is not available for your active subscription plan.</span>
<span class="na">stormpath.web.errors.1904</span> <span class="o">=</span> <span class="s">In order to change your subscription, you need to add a payment method first.</span>
<span class="na">stormpath.web.errors.1905</span> <span class="o">=</span> <span class="s">You cannot lower the number of Applications for your subscription without first deleting Applications. Please delete the specified number of Applications and then try again.</span>
<span class="na">stormpath.web.errors.1906</span> <span class="o">=</span> <span class="s">You cannot add more than one credit card to your subscription. A credit card already exists for your subscription.</span>
<span class="na">stormpath.web.errors.1910</span> <span class="o">=</span> <span class="s">Cannot send an email with the specified mime type on the developer tier. Modify the email template or upgrade your Stormpath Tenant.</span>
<span class="na">stormpath.web.errors.1920</span> <span class="o">=</span> <span class="s">The card number is incorrect.</span>
<span class="na">stormpath.web.errors.1921</span> <span class="o">=</span> <span class="s">The card number is not a valid credit card number.</span>
<span class="na">stormpath.web.errors.1922</span> <span class="o">=</span> <span class="s">The card''s expiration month is invalid.</span>
<span class="na">stormpath.web.errors.1923</span> <span class="o">=</span> <span class="s">The card''s expiration year is invalid.</span>
<span class="na">stormpath.web.errors.1924</span> <span class="o">=</span> <span class="s">The card''s security code is invalid.</span>
<span class="na">stormpath.web.errors.1925</span> <span class="o">=</span> <span class="s">The card''s security code is incorrect.</span>
<span class="na">stormpath.web.errors.1926</span> <span class="o">=</span> <span class="s">The card has expired.</span>
<span class="na">stormpath.web.errors.1927</span> <span class="o">=</span> <span class="s">The card was declined.</span>
<span class="na">stormpath.web.errors.1928</span> <span class="o">=</span> <span class="s">An error occurred while processing the card.</span>
<span class="na">stormpath.web.errors.2000</span> <span class="o">=</span> <span class="s">The specified property value is required; it cannot be null, empty, or blank.</span>
<span class="na">stormpath.web.errors.2001</span> <span class="o">=</span> <span class="s">The specified property value already exists. Please choose another value.</span>
<span class="na">stormpath.web.errors.2002</span> <span class="o">=</span> <span class="s">The specified property value is invalid.</span>
<span class="na">stormpath.web.errors.2003</span> <span class="o">=</span> <span class="s">The specified property value is unsupported.</span>
<span class="na">stormpath.web.errors.2004</span> <span class="o">=</span> <span class="s">The specified property value is an invalid type.</span>
<span class="na">stormpath.web.errors.2005</span> <span class="o">=</span> <span class="s">The specified property value uses an invalid character encoding.</span>
<span class="na">stormpath.web.errors.2006</span> <span class="o">=</span> <span class="s">The specified property is in an invalid format.</span>
<span class="na">stormpath.web.errors.2007</span> <span class="o">=</span> <span class="s">The specified property value’s minimum length is not satisfied.</span>
<span class="na">stormpath.web.errors.2008</span> <span class="o">=</span> <span class="s">The specified property value exceeded the maximum allowed length.</span>
<span class="na">stormpath.web.errors.2009</span> <span class="o">=</span> <span class="s">The specified property’s minimum value is not satisfied.</span>
<span class="na">stormpath.web.errors.2010</span> <span class="o">=</span> <span class="s">The specified property exceeded the maximum allowed value.</span>
<span class="na">stormpath.web.errors.2011</span> <span class="o">=</span> <span class="s">The specified property’s minimum date/time is not satisfied.</span>
<span class="na">stormpath.web.errors.2012</span> <span class="o">=</span> <span class="s">The specified property’s maximum date/time is exceeded</span>
<span class="na">stormpath.web.errors.2013</span> <span class="o">=</span> <span class="s">The specified property’s value is not within range.</span>
<span class="na">stormpath.web.errors.2014</span> <span class="o">=</span> <span class="s">The specified property value is an invalid reference.</span>
<span class="na">stormpath.web.errors.2015</span> <span class="o">=</span> <span class="s">Unknown property.</span>
<span class="na">stormpath.web.errors.2016</span> <span class="o">=</span> <span class="s">Property value does not match a known Stormpath resource.</span>
<span class="na">stormpath.web.errors.2017</span> <span class="o">=</span> <span class="s">The specified property is unsupported.</span>
<span class="na">stormpath.web.errors.2020</span> <span class="o">=</span> <span class="s">The specified resource reference is invalid: the specified resource does not exist. It may have been deleted before the request was submitted.</span>
<span class="na">stormpath.web.errors.2021</span> <span class="o">=</span> <span class="s">The specified resource reference is invalid: the resource’s status is such that it may not be used.</span>
<span class="na">stormpath.web.errors.2022</span> <span class="o">=</span> <span class="s">The specified resource reference is invalid: the specified Account Store is not a SAML Directory and may not be used.</span>
<span class="c"># Note: the message in api-errors.properties has an argument in this string. I removed it.</span>
<span class="na">stormpath.web.errors.2023</span> <span class="o">=</span> <span class="s">The specified resource was not found.</span>
<span class="na">stormpath.web.errors.2024</span> <span class="o">=</span> <span class="s">The specified email does not match the one attached to this invitation.</span>
<span class="na">stormpath.web.errors.2100</span> <span class="o">=</span> <span class="s">Malformed query. Ensure each name/value pair has a valid name and value.</span>
<span class="na">stormpath.web.errors.2101</span> <span class="o">=</span> <span class="s">The specified query parameter must have a corresponding value.</span>
<span class="na">stormpath.web.errors.2102</span> <span class="o">=</span> <span class="s">The specified query parameter can only have a single value.</span>
<span class="na">stormpath.web.errors.2103</span> <span class="o">=</span> <span class="s">The specified query parameter value is invalid or an unexpected type.</span>
<span class="na">stormpath.web.errors.2104</span> <span class="o">=</span> <span class="s">The orderBy query value contains an invalid order statement. An order statement must be a queryable property optionally followed by a space character and order direction token (asc or desc).</span>
<span class="na">stormpath.web.errors.2105</span> <span class="o">=</span> <span class="s">The specified query value is not supported.</span>
<span class="na">stormpath.web.errors.2106</span> <span class="o">=</span> <span class="s">The specified orderBy value is not supported.</span>
<span class="na">stormpath.web.errors.2107</span> <span class="o">=</span> <span class="s">The specified reference does not support expansion.</span>
<span class="na">stormpath.web.errors.2108</span> <span class="o">=</span> <span class="s">Invalid range specified: end value should be greater than start value.</span>
<span class="na">stormpath.web.errors.3000</span> <span class="o">=</span> <span class="s">Property names cannot be null, empty or blank.</span>
<span class="na">stormpath.web.errors.3001</span> <span class="o">=</span> <span class="s">Property name is invalid. Property names cannot exceed 255 characters.</span>
<span class="na">stormpath.web.errors.3002</span> <span class="o">=</span> <span class="s">Property name is invalid. Property names may contain only alphanumeric characters 0-9A-Za-z, underscores _, or dashes -, but cannot start with a dash.</span>
<span class="na">stormpath.web.errors.3003</span> <span class="o">=</span> <span class="s">Property names may not equal any of the following reserved names: href, createdAt, modifiedAt, meta, spMeta, spmeta, ionmeta, or ionMeta.</span>
<span class="na">stormpath.web.errors.3004</span> <span class="o">=</span> <span class="s">Property value exceeds maximum size. The value exceeds the maximum storage size limit of 10 MB per customData resource.</span>
<span class="na">stormpath.web.errors.4001</span> <span class="o">=</span> <span class="s">Your Stormpath Tenant owner Account cannot be deleted.</span>
<span class="na">stormpath.web.errors.4002</span> <span class="o">=</span> <span class="s">Your Stormpath Tenant owner Account’s status cannot be modified.</span>
<span class="na">stormpath.web.errors.4520</span> <span class="o">=</span> <span class="s">The specified Directory name is already in use by another Directory and cannot be used to auto-create a Directory for the new Organization. Please choose a different name for the auto-created Directory.</span>
<span class="na">stormpath.web.errors.4600</span> <span class="o">=</span> <span class="s">This Organization does not have a default storage location configured for newly created Accounts. To fix this problem: in the Organization’s ‘Account Stores’ configuration, specify the Account Store that will be used to store newly created Accounts.</span>
<span class="na">stormpath.web.errors.4601</span> <span class="o">=</span> <span class="s">This Organization’s default Account Store for new Accounts is disabled. New Accounts cannot be added to disabled Groups or Directories. To fix this problem: in the Organization’s ‘Account Stores’ configuration, change the status of the default Account Store to ENABLED.</span>
<span class="na">stormpath.web.errors.4602</span> <span class="o">=</span> <span class="s">No default Account Store has been mapped to this Organization for newly created Groups. To fix this problem: in the Organization’s ‘Account Stores’ configuration, specify the Account Store that will be used to store newly created Groups.</span>
<span class="na">stormpath.web.errors.4603</span> <span class="o">=</span> <span class="s">This Organization’s default Account Store for new Groups is disabled. New Groups cannot be added to disabled Account Stores. To fix this problem: in the Organization’s ‘Account Stores’ configuration, change the status of the Account Store used for storing new Groups to ENABLED.</span>
<span class="na">stormpath.web.errors.4604</span> <span class="o">=</span> <span class="s">The specified Account Store is already mapped to the Organization. Please choose another Account Store to map.</span>
<span class="na">stormpath.web.errors.4605</span> <span class="o">=</span> <span class="s">Login attempt failed because the Organization does not have any assigned Account Stores.</span>
<span class="na">stormpath.web.errors.4606</span> <span class="o">=</span> <span class="s">The specified Directory is a read-only mirror of an externally managed directory. It cannot be used to directly store new Accounts.</span>
<span class="na">stormpath.web.errors.4608</span> <span class="o">=</span> <span class="s">The specified Group is a read-only mirror of an externally-managed Group. It cannot be used to directly store new Accounts.</span>
<span class="na">stormpath.web.errors.4610</span> <span class="o">=</span> <span class="s">The specified Directory is a read-only mirror of an externally managed Directory. It cannot be used to directly store new Groups.</span>
<span class="na">stormpath.web.errors.4612</span> <span class="o">=</span> <span class="s">Specifying a Group as a default Group Store is not currently supported.</span>
<span class="na">stormpath.web.errors.4614</span> <span class="o">=</span> <span class="s">An Organization cannot be mapped as an Account Store for another Organization.</span>
<span class="na">stormpath.web.errors.5010</span> <span class="o">=</span> <span class="s">Sorry, that Directory name is not available. Please choose another.</span>
<span class="na">stormpath.web.errors.5104</span> <span class="o">=</span> <span class="s">The specified Account Store is already mapped to that Application. Please choose another Account Store.</span>
<span class="na">stormpath.web.errors.5106</span> <span class="o">=</span> <span class="s">The specified Directory Account Store is a read-only mirror of an externally-managed Directory. It cannot be used to directly store new Accounts.</span>
<span class="na">stormpath.web.errors.5108</span> <span class="o">=</span> <span class="s">The specified Group Account store is a read-only mirror of an externally-managed Group. It cannot be used to directly store new Accounts.</span>
<span class="na">stormpath.web.errors.5110</span> <span class="o">=</span> <span class="s">The specified Directory Account Store is a read-only mirror of an externally managed Directory. It cannot be used to directly store new Groups.</span>
<span class="na">stormpath.web.errors.5112</span> <span class="o">=</span> <span class="s">Specifying a Group as a default Group Store is not currently supported.</span>
<span class="na">stormpath.web.errors.6100</span> <span class="o">=</span> <span class="s">This externally-managed Directory does not allow creation of new Accounts or Groups.</span>
<span class="c"># Note: the message in api-errors.properties has an argument in this string. I removed it.</span>
<span class="na">stormpath.web.errors.6401</span> <span class="o">=</span> <span class="s">The password specified is not allowed because it matches one of your last passwords.</span>
<span class="na">stormpath.web.errors.6203</span> <span class="o">=</span> <span class="s">Stormpath was not able to complete the request to LinkedIn. This is caused by the LinkedIn configuration missing the redirectUri property in the Stormpath Directory configuration. When using an authorization code from LinkedIn, a redirectUri property must be set.</span>
<span class="na">stormpath.web.errors.7200</span> <span class="o">=</span> <span class="s">The request to Facebook was not able to complete. This can be caused by either a bad Facebook Directory configuration, or the provided Account credentials are not valid.</span>
<span class="na">stormpath.web.errors.7205</span> <span class="o">=</span> <span class="s">Cannot create the Account because the email matches the Directory’s emailDomainBlacklist</span>
<span class="na">stormpath.web.errors.7206</span> <span class="o">=</span> <span class="s">Cannot create the Account because the email domain does not match the Directory’s emailDomainWhitelist.</span>
<span class="na">stormpath.web.errors.7500</span> <span class="o">=</span> <span class="s">These accounts are already linked.</span>
<span class="na">stormpath.web.errors.7501</span> <span class="o">=</span> <span class="s">An AccountLink can only be created between 2 different Accounts.</span>
<span class="na">stormpath.web.errors.7502</span> <span class="o">=</span> <span class="s">Bad Request. The Request Body is Malformed.</span>
<span class="c"># Note: the message in api-errors.properties has an argument in this string. I removed it.</span>
<span class="na">stormpath.web.errors.7503</span> <span class="o">=</span> <span class="s">Too many account links allowed on this account. You already have the maximum allowed account links.</span>
<span class="na">stormpath.web.errors.12001</span> <span class="o">=</span> <span class="s">The session on ID Site has timed out. This can occur if the user stays on ID Site without logging in, registering, or resetting a password.</span>
<span class="na">stormpath.web.errors.13000</span> <span class="o">=</span> <span class="s">Unable to connect to an SMTP server located at the address and port provided.</span>
<span class="na">stormpath.web.errors.13001</span> <span class="o">=</span> <span class="s">Unable to authenticate to an SMTP server with the username and password provided.</span>
<span class="na">stormpath.web.errors.13002</span> <span class="o">=</span> <span class="s">Unable to connect to an SMTP server using the security protocol provided.</span>
<span class="na">stormpath.web.errors.13003</span> <span class="o">=</span> <span class="s">You cannot create a new email server because one already exists for your Tenant.</span>
<span class="na">stormpath.cookie.insecure.error</span> <span class="o">=</span> <span class="s">Internal configuration error during authentication attempt.</span>
</pre></div>
</div>
</div>
</div>
</div>
</div>
<footer>
<div class="rst-footer-buttons" role="navigation" aria-label="footer navigation">
<a href="events.html" class="btn btn-neutral float-right" title="Events" accesskey="n">Next <span class="fa fa-arrow-circle-right"></span></a>
<a href="access-control.html" class="btn btn-neutral" title="Access Control" accesskey="p"><span class="fa fa-arrow-circle-left"></span> Previous</a>
</div>
<hr/>
<div role="contentinfo">
<p>
© Copyright 2017, Stormpath, Inc.
</p>
</div>
Built with <a href="http://sphinx-doc.org/">Sphinx</a> using a <a href="https://github.com/snide/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>.
</footer>
</div>
</div>
</section>
</div>
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT:'./',
VERSION:'1.5.4',
COLLAPSE_INDEX:false,
FILE_SUFFIX:'.html',
HAS_SOURCE: true
};
</script>
<script type="text/javascript" src="_static/jquery.js"></script>
<script type="text/javascript" src="_static/underscore.js"></script>
<script type="text/javascript" src="_static/doctools.js"></script>
<script type="text/javascript" src="_static/js/theme.js"></script>
<script type="text/javascript">
jQuery(function () {
SphinxRtdTheme.StickyNav.enable();
});
</script>
</body>
</html>
You can’t perform that action at this time.
