[seam-commits] Seam SVN: r12461 - modules/security/trunk/api/src/main/java/org/jboss/seam/security/events.
seam-commits at lists.jboss.org
seam-commits at lists.jboss.org
Tue Apr 13 07:41:30 EDT 2010
Author: shane.bryzak at jboss.com
Date: 2010-04-13 07:41:28 -0400 (Tue, 13 Apr 2010)
New Revision: 12461
Added:
modules/security/trunk/api/src/main/java/org/jboss/seam/security/events/AlreadyLoggedInEvent.java
modules/security/trunk/api/src/main/java/org/jboss/seam/security/events/CredentialsInitializedEvent.java
modules/security/trunk/api/src/main/java/org/jboss/seam/security/events/CredentialsUpdatedEvent.java
modules/security/trunk/api/src/main/java/org/jboss/seam/security/events/DefaultResolverChainCreatedEvent.java
modules/security/trunk/api/src/main/java/org/jboss/seam/security/events/LoggedInEvent.java
modules/security/trunk/api/src/main/java/org/jboss/seam/security/events/LoggedOutEvent.java
modules/security/trunk/api/src/main/java/org/jboss/seam/security/events/LoginFailedEvent.java
modules/security/trunk/api/src/main/java/org/jboss/seam/security/events/NotAuthorizedEvent.java
modules/security/trunk/api/src/main/java/org/jboss/seam/security/events/NotLoggedInEvent.java
modules/security/trunk/api/src/main/java/org/jboss/seam/security/events/PostAuthenticateEvent.java
modules/security/trunk/api/src/main/java/org/jboss/seam/security/events/PreAuthenticateEvent.java
modules/security/trunk/api/src/main/java/org/jboss/seam/security/events/PrePersistUserEvent.java
modules/security/trunk/api/src/main/java/org/jboss/seam/security/events/PrePersistUserRoleEvent.java
modules/security/trunk/api/src/main/java/org/jboss/seam/security/events/QuietLoginEvent.java
modules/security/trunk/api/src/main/java/org/jboss/seam/security/events/UserAuthenticatedEvent.java
modules/security/trunk/api/src/main/java/org/jboss/seam/security/events/UserCreatedEvent.java
Log:
move events to api
Added: modules/security/trunk/api/src/main/java/org/jboss/seam/security/events/AlreadyLoggedInEvent.java
===================================================================
--- modules/security/trunk/api/src/main/java/org/jboss/seam/security/events/AlreadyLoggedInEvent.java (rev 0)
+++ modules/security/trunk/api/src/main/java/org/jboss/seam/security/events/AlreadyLoggedInEvent.java 2010-04-13 11:41:28 UTC (rev 12461)
@@ -0,0 +1,11 @@
+package org.jboss.seam.security.events;
+
+/**
+ * This event is fired when an already authenticated user attempts to authenticate again
+ *
+ * @author Shane Bryzak
+ */
+public class AlreadyLoggedInEvent
+{
+
+}
Added: modules/security/trunk/api/src/main/java/org/jboss/seam/security/events/CredentialsInitializedEvent.java
===================================================================
--- modules/security/trunk/api/src/main/java/org/jboss/seam/security/events/CredentialsInitializedEvent.java (rev 0)
+++ modules/security/trunk/api/src/main/java/org/jboss/seam/security/events/CredentialsInitializedEvent.java 2010-04-13 11:41:28 UTC (rev 12461)
@@ -0,0 +1,28 @@
+package org.jboss.seam.security.events;
+
+import org.jboss.seam.security.Credentials;
+
+/**
+ * This event is raised when credentials are initialized
+ *
+ * @author Shane Bryzak
+ */
+public class CredentialsInitializedEvent
+{
+ private Credentials credentials;
+
+ public CredentialsInitializedEvent(Credentials credentials)
+ {
+ this.credentials = credentials;
+ }
+
+ public Credentials getCredentials()
+ {
+ return credentials;
+ }
+
+ public void setCredentials(Credentials credentials)
+ {
+ this.credentials = credentials;
+ }
+}
Added: modules/security/trunk/api/src/main/java/org/jboss/seam/security/events/CredentialsUpdatedEvent.java
===================================================================
--- modules/security/trunk/api/src/main/java/org/jboss/seam/security/events/CredentialsUpdatedEvent.java (rev 0)
+++ modules/security/trunk/api/src/main/java/org/jboss/seam/security/events/CredentialsUpdatedEvent.java 2010-04-13 11:41:28 UTC (rev 12461)
@@ -0,0 +1,11 @@
+package org.jboss.seam.security.events;
+
+/**
+ * This event is raised when credentials are updated
+ *
+ * @author Shane Bryzak
+ */
+public class CredentialsUpdatedEvent
+{
+
+}
Added: modules/security/trunk/api/src/main/java/org/jboss/seam/security/events/DefaultResolverChainCreatedEvent.java
===================================================================
--- modules/security/trunk/api/src/main/java/org/jboss/seam/security/events/DefaultResolverChainCreatedEvent.java (rev 0)
+++ modules/security/trunk/api/src/main/java/org/jboss/seam/security/events/DefaultResolverChainCreatedEvent.java 2010-04-13 11:41:28 UTC (rev 12461)
@@ -0,0 +1,23 @@
+package org.jboss.seam.security.events;
+
+import org.jboss.seam.security.permission.ResolverChain;
+
+/**
+ * This event is raised when the default permission resolver chain is created
+ *
+ * @author Shane Bryzak
+ */
+public class DefaultResolverChainCreatedEvent
+{
+ private ResolverChain chain;
+
+ public DefaultResolverChainCreatedEvent(ResolverChain chain)
+ {
+ this.chain = chain;
+ }
+
+ public ResolverChain getChain()
+ {
+ return chain;
+ }
+}
Added: modules/security/trunk/api/src/main/java/org/jboss/seam/security/events/LoggedInEvent.java
===================================================================
--- modules/security/trunk/api/src/main/java/org/jboss/seam/security/events/LoggedInEvent.java (rev 0)
+++ modules/security/trunk/api/src/main/java/org/jboss/seam/security/events/LoggedInEvent.java 2010-04-13 11:41:28 UTC (rev 12461)
@@ -0,0 +1,23 @@
+package org.jboss.seam.security.events;
+
+import java.security.Principal;
+
+/**
+ * This event is raised when user successfully logs in.
+ *
+ * @author Shane Bryzak
+ */
+public class LoggedInEvent
+{
+ private Principal principal;
+
+ public LoggedInEvent(Principal principal)
+ {
+ this.principal = principal;
+ }
+
+ public Principal getPrincipal()
+ {
+ return principal;
+ }
+}
Added: modules/security/trunk/api/src/main/java/org/jboss/seam/security/events/LoggedOutEvent.java
===================================================================
--- modules/security/trunk/api/src/main/java/org/jboss/seam/security/events/LoggedOutEvent.java (rev 0)
+++ modules/security/trunk/api/src/main/java/org/jboss/seam/security/events/LoggedOutEvent.java 2010-04-13 11:41:28 UTC (rev 12461)
@@ -0,0 +1,23 @@
+package org.jboss.seam.security.events;
+
+import java.security.Principal;
+
+/**
+ * This event is raised just after the user unauthenticates
+ *
+ * @author Shane Bryzak
+ */
+public class LoggedOutEvent
+{
+ private Principal principal;
+
+ public LoggedOutEvent(Principal principal)
+ {
+ this.principal = principal;
+ }
+
+ public Principal getPrincipal()
+ {
+ return principal;
+ }
+}
Added: modules/security/trunk/api/src/main/java/org/jboss/seam/security/events/LoginFailedEvent.java
===================================================================
--- modules/security/trunk/api/src/main/java/org/jboss/seam/security/events/LoginFailedEvent.java (rev 0)
+++ modules/security/trunk/api/src/main/java/org/jboss/seam/security/events/LoginFailedEvent.java 2010-04-13 11:41:28 UTC (rev 12461)
@@ -0,0 +1,23 @@
+package org.jboss.seam.security.events;
+
+import javax.security.auth.login.LoginException;
+
+/**
+ * This event is fired when an authentication attempt fails
+ *
+ * @author Shane Bryzak
+ */
+public class LoginFailedEvent
+{
+ private LoginException loginException;
+
+ public LoginFailedEvent(LoginException loginException)
+ {
+ this.loginException = loginException;
+ }
+
+ public LoginException getLoginException()
+ {
+ return loginException;
+ }
+}
Added: modules/security/trunk/api/src/main/java/org/jboss/seam/security/events/NotAuthorizedEvent.java
===================================================================
--- modules/security/trunk/api/src/main/java/org/jboss/seam/security/events/NotAuthorizedEvent.java (rev 0)
+++ modules/security/trunk/api/src/main/java/org/jboss/seam/security/events/NotAuthorizedEvent.java 2010-04-13 11:41:28 UTC (rev 12461)
@@ -0,0 +1,11 @@
+package org.jboss.seam.security.events;
+
+/**
+ * This event is raised when the user is not authorized to perform an operation
+ *
+ * @author Shane Bryzak
+ */
+public class NotAuthorizedEvent
+{
+
+}
Added: modules/security/trunk/api/src/main/java/org/jboss/seam/security/events/NotLoggedInEvent.java
===================================================================
--- modules/security/trunk/api/src/main/java/org/jboss/seam/security/events/NotLoggedInEvent.java (rev 0)
+++ modules/security/trunk/api/src/main/java/org/jboss/seam/security/events/NotLoggedInEvent.java 2010-04-13 11:41:28 UTC (rev 12461)
@@ -0,0 +1,11 @@
+package org.jboss.seam.security.events;
+
+/**
+ * This event is raised when an unauthenticated user attempts to performed a privileged operation
+ *
+ * @author Shane Bryzak
+ */
+public class NotLoggedInEvent
+{
+
+}
Added: modules/security/trunk/api/src/main/java/org/jboss/seam/security/events/PostAuthenticateEvent.java
===================================================================
--- modules/security/trunk/api/src/main/java/org/jboss/seam/security/events/PostAuthenticateEvent.java (rev 0)
+++ modules/security/trunk/api/src/main/java/org/jboss/seam/security/events/PostAuthenticateEvent.java 2010-04-13 11:41:28 UTC (rev 12461)
@@ -0,0 +1,11 @@
+package org.jboss.seam.security.events;
+
+/**
+ * This event is raised just after authentication
+ *
+ * @author Shane Bryzak
+ */
+public class PostAuthenticateEvent
+{
+
+}
Added: modules/security/trunk/api/src/main/java/org/jboss/seam/security/events/PreAuthenticateEvent.java
===================================================================
--- modules/security/trunk/api/src/main/java/org/jboss/seam/security/events/PreAuthenticateEvent.java (rev 0)
+++ modules/security/trunk/api/src/main/java/org/jboss/seam/security/events/PreAuthenticateEvent.java 2010-04-13 11:41:28 UTC (rev 12461)
@@ -0,0 +1,11 @@
+package org.jboss.seam.security.events;
+
+/**
+ * This event is raised just before authentication.
+ *
+ * @author Shane Bryzak
+ */
+public class PreAuthenticateEvent
+{
+
+}
Added: modules/security/trunk/api/src/main/java/org/jboss/seam/security/events/PrePersistUserEvent.java
===================================================================
--- modules/security/trunk/api/src/main/java/org/jboss/seam/security/events/PrePersistUserEvent.java (rev 0)
+++ modules/security/trunk/api/src/main/java/org/jboss/seam/security/events/PrePersistUserEvent.java 2010-04-13 11:41:28 UTC (rev 12461)
@@ -0,0 +1,21 @@
+package org.jboss.seam.security.events;
+
+/**
+ * This event is raised just before a new user is persisted
+ *
+ * @author Shane Bryzak
+ */
+public class PrePersistUserEvent
+{
+ private Object user;
+
+ public PrePersistUserEvent(Object user)
+ {
+ this.user = user;
+ }
+
+ public Object getUser()
+ {
+ return user;
+ }
+}
Added: modules/security/trunk/api/src/main/java/org/jboss/seam/security/events/PrePersistUserRoleEvent.java
===================================================================
--- modules/security/trunk/api/src/main/java/org/jboss/seam/security/events/PrePersistUserRoleEvent.java (rev 0)
+++ modules/security/trunk/api/src/main/java/org/jboss/seam/security/events/PrePersistUserRoleEvent.java 2010-04-13 11:41:28 UTC (rev 12461)
@@ -0,0 +1,21 @@
+package org.jboss.seam.security.events;
+
+/**
+ * This event is raised just before a user role is persisted
+ *
+ * @author Shane Bryzak
+ */
+public class PrePersistUserRoleEvent
+{
+ private Object xref;
+
+ public PrePersistUserRoleEvent(Object xref)
+ {
+ this.xref = xref;
+ }
+
+ public Object getXref()
+ {
+ return xref;
+ }
+}
Added: modules/security/trunk/api/src/main/java/org/jboss/seam/security/events/QuietLoginEvent.java
===================================================================
--- modules/security/trunk/api/src/main/java/org/jboss/seam/security/events/QuietLoginEvent.java (rev 0)
+++ modules/security/trunk/api/src/main/java/org/jboss/seam/security/events/QuietLoginEvent.java 2010-04-13 11:41:28 UTC (rev 12461)
@@ -0,0 +1,11 @@
+package org.jboss.seam.security.events;
+
+/**
+ * This event is raised when the user performs a quiet login
+ *
+ * @author Shane Bryzak
+ */
+public class QuietLoginEvent
+{
+
+}
Added: modules/security/trunk/api/src/main/java/org/jboss/seam/security/events/UserAuthenticatedEvent.java
===================================================================
--- modules/security/trunk/api/src/main/java/org/jboss/seam/security/events/UserAuthenticatedEvent.java (rev 0)
+++ modules/security/trunk/api/src/main/java/org/jboss/seam/security/events/UserAuthenticatedEvent.java 2010-04-13 11:41:28 UTC (rev 12461)
@@ -0,0 +1,21 @@
+package org.jboss.seam.security.events;
+
+/**
+ * This event is raised when a user is authenticated
+ *
+ * @author Shane Bryzak
+ */
+public class UserAuthenticatedEvent
+{
+ private Object user;
+
+ public UserAuthenticatedEvent(Object user)
+ {
+ this.user = user;
+ }
+
+ public Object getUser()
+ {
+ return user;
+ }
+}
Added: modules/security/trunk/api/src/main/java/org/jboss/seam/security/events/UserCreatedEvent.java
===================================================================
--- modules/security/trunk/api/src/main/java/org/jboss/seam/security/events/UserCreatedEvent.java (rev 0)
+++ modules/security/trunk/api/src/main/java/org/jboss/seam/security/events/UserCreatedEvent.java 2010-04-13 11:41:28 UTC (rev 12461)
@@ -0,0 +1,21 @@
+package org.jboss.seam.security.events;
+
+/**
+ * This event is raised immediately after a user is created
+ *
+ * @author Shane Bryzak
+ */
+public class UserCreatedEvent
+{
+ private Object user;
+
+ public UserCreatedEvent(Object user)
+ {
+ this.user = user;
+ }
+
+ public Object getUser()
+ {
+ return user;
+ }
+}
More information about the seam-commits
mailing list