You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@shiro.apache.org by lp...@apache.org on 2023/03/29 14:48:40 UTC

[shiro-site] branch asf-site updated: ShiroPrincipal -> Supplier

This is an automated email from the ASF dual-hosted git repository.

lprimak pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/shiro-site.git


The following commit(s) were added to refs/heads/asf-site by this push:
     new def867e16 ShiroPrincipal -> Supplier
def867e16 is described below

commit def867e1664c2a26885d9c01bb1c202111afc43b
Author: lprimak <le...@flowlogix.com>
AuthorDate: Wed Mar 29 09:48:25 2023 -0500

    ShiroPrincipal -> Supplier
---
 .well-known/security.txt | 2 +-
 feed.xml                 | 2 +-
 jakarta-ee.html          | 6 +++---
 3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/.well-known/security.txt b/.well-known/security.txt
index 6397428a3..0c9d6da17 100644
--- a/.well-known/security.txt
+++ b/.well-known/security.txt
@@ -1,5 +1,5 @@
 Contact: mailto:security@shiro.apache.org
-Expires: 2024-03-28T03:38:42Z
+Expires: 2024-03-28T14:47:45Z
 Preferred-Languages: en
 Canonical: https://shiro.apache.org/.well-known/security.txt
 Policy: https://shiro.apache.org/security-reports.html
\ No newline at end of file
diff --git a/feed.xml b/feed.xml
index 08f7ffc3f..48ef46a9e 100644
--- a/feed.xml
+++ b/feed.xml
@@ -4,7 +4,7 @@
   <subtitle>Simple. Java. Security.</subtitle>
   <link href="https://shiro.apache.org/"/>
   <link rel="self" href="https://shiro.apache.org/feed.xml" />
-  <updated>2023-03-29T03:38:45Z</updated>
+  <updated>2023-03-29T14:47:48Z</updated>
 
   <author>
     <name>Les Hazlewood</name>
diff --git a/jakarta-ee.html b/jakarta-ee.html
index 795443ec4..f4a86c62b 100644
--- a/jakarta-ee.html
+++ b/jakarta-ee.html
@@ -526,7 +526,7 @@ public class MyBean {
 
     @Inject
     @Principal
-    ShiroPrincipal&lt;MyUserAccount&gt; userAccount;
+    Supplier&lt;MyUserAccount&gt; userAccount;
 
     @Inject
     Session session;
@@ -538,9 +538,9 @@ public class MyBean {
 </div>
 </div>
 <div class="paragraph">
-<p><code>Subject</code>, <code>Session</code> and <code>ShiroPrincipal</code> are always treated as Request-Scoped beans. They are injectable into any Jakarta EE bean including Jax-RS, Servlet and other CDI beans.<br>
+<p><code>Subject</code>, <code>Session</code> and <code>@Principal</code> are always treated as Request-Scoped beans. They are injectable into any Jakarta EE bean including Jax-RS, Servlet and other CDI beans.<br>
 If <code>Session</code> is annotated with <code>@NoSessionCreation</code> and there is no existing session, <code>InvalidSessionException</code> is thrown when accessing the Injected session.<br>
-Any Shiro principal object can be injected if annotated by <code>@Principal</code>. It must be injected as <code>ShiroPrincipal</code>, and <code>ShiroPrincipal.get()</code> may return null if there are no principals available of the injected type.</p>
+Any Shiro principal object can be injected if annotated by <code>@Principal</code>. It must be injected as <code>Supplier&lt;MyPrincipalClass&gt;</code>, and <code>Supplier.get()</code> may return null if there are no principals available of the injected type.</p>
 </div>
 </div>
 </div>