[jboss-cvs] jboss-seam/src/main/org/jboss/seam/security ...
Shane Bryzak
Shane_Bryzak at symantec.com
Wed Dec 20 21:38:28 EST 2006
User: sbryzak2
Date: 06/12/20 21:38:28
Modified: src/main/org/jboss/seam/security
AuthenticationException.java Role.java
SeamSecurityManager.java UsernamePasswordToken.java
Log:
fixed compiler warnings
Revision Changes Path
1.6 +16 -12 jboss-seam/src/main/org/jboss/seam/security/AuthenticationException.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: AuthenticationException.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/security/AuthenticationException.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -b -r1.5 -r1.6
--- AuthenticationException.java 24 Oct 2006 14:58:04 -0000 1.5
+++ AuthenticationException.java 21 Dec 2006 02:38:28 -0000 1.6
@@ -3,11 +3,15 @@
import javax.ejb.ApplicationException;
/**
+ * Thrown by the
+ *
* @author Shane Bryzak
*/
@ApplicationException
public class AuthenticationException extends RuntimeException
{
+ private static final long serialVersionUID = -4150337120205930755L;
+
public AuthenticationException()
{
super();
1.2 +86 -83 jboss-seam/src/main/org/jboss/seam/security/Role.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: Role.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/security/Role.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- Role.java 4 Dec 2006 04:23:51 -0000 1.1
+++ Role.java 21 Dec 2006 02:38:28 -0000 1.2
@@ -16,14 +16,17 @@
*/
public class Role implements Group, Serializable
{
+ private static final long serialVersionUID = 5766373925836425908L;
+
/**
* The name of the role
*/
private String name;
/**
- * The members of this role. This role has the authority to perform any action
- * that any of its members (or member's members, ad infinitum) can perform.
+ * The members of this role. This role has the authority to perform any
+ * action that any of its members (or member's members, ad infinitum) can
+ * perform.
*/
private Set<Principal> members = new HashSet<Principal>();
1.29 +0 -5 jboss-seam/src/main/org/jboss/seam/security/SeamSecurityManager.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: SeamSecurityManager.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/security/SeamSecurityManager.java,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -b -r1.28 -r1.29
--- SeamSecurityManager.java 20 Dec 2006 03:35:21 -0000 1.28
+++ SeamSecurityManager.java 21 Dec 2006 02:38:28 -0000 1.29
@@ -58,11 +58,6 @@
private RuleBase securityRules;
/**
- * Map roles to permissions
- */
- private Map<String, Set<Permission>> rolePermissions = new HashMap<String, Set<Permission>>();
-
- /**
* Initialise the security manager
*
* @throws Exception
1.9 +54 -47 jboss-seam/src/main/org/jboss/seam/security/UsernamePasswordToken.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: UsernamePasswordToken.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/security/UsernamePasswordToken.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -b -r1.8 -r1.9
--- UsernamePasswordToken.java 4 Dec 2006 04:23:51 -0000 1.8
+++ UsernamePasswordToken.java 21 Dec 2006 02:38:28 -0000 1.9
@@ -1,12 +1,18 @@
package org.jboss.seam.security;
/**
+ * An Identity that supports traditional username and password authentication.
+ *
* @author Shane Bryzak
*/
public class UsernamePasswordToken extends Identity
{
+ private static final long serialVersionUID = -891900764186531420L;
+
private Role[] roles;
+
private Object credentials;
+
private Object principal;
public UsernamePasswordToken(Object principal, Object credentials)
@@ -16,7 +22,8 @@
this.authenticated = false;
}
- public UsernamePasswordToken(Object principal, Object credentials, Role[] roles)
+ public UsernamePasswordToken(Object principal, Object credentials,
+ Role[] roles)
{
this(principal, credentials);
this.roles = roles;
More information about the jboss-cvs-commits
mailing list