[seam-commits] Seam SVN: r10422 - in trunk/src: main/org/jboss/seam/security/crypto and 4 other directories.
seam-commits at lists.jboss.org
seam-commits at lists.jboss.org
Wed Apr 15 06:12:14 EDT 2009
Author: shane.bryzak at jboss.com
Date: 2009-04-15 06:12:14 -0400 (Wed, 15 Apr 2009)
New Revision: 10422
Modified:
trunk/src/main/org/jboss/seam/security/SecurityInterceptor.java
trunk/src/main/org/jboss/seam/security/crypto/PBKDF2Engine.java
trunk/src/main/org/jboss/seam/security/digest/DigestAuthenticator.java
trunk/src/main/org/jboss/seam/security/management/JpaIdentityStore.java
trunk/src/main/org/jboss/seam/webservice/WSSecurityInterceptor.java
trunk/src/test/unit/org/jboss/seam/test/unit/PasswordHashTest.java
Log:
imports, warnings
Modified: trunk/src/main/org/jboss/seam/security/SecurityInterceptor.java
===================================================================
--- trunk/src/main/org/jboss/seam/security/SecurityInterceptor.java 2009-04-15 07:12:00 UTC (rev 10421)
+++ trunk/src/main/org/jboss/seam/security/SecurityInterceptor.java 2009-04-15 10:12:14 UTC (rev 10422)
@@ -33,7 +33,7 @@
/**
* You may encounter a JVM bug where the field initializer is not evaluated for a transient field after deserialization.
- * @see http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6252102
+ * @see "http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6252102"
*/
private transient volatile Map<Method,Restriction> restrictions = new HashMap<Method,Restriction>();
Modified: trunk/src/main/org/jboss/seam/security/crypto/PBKDF2Engine.java
===================================================================
--- trunk/src/main/org/jboss/seam/security/crypto/PBKDF2Engine.java 2009-04-15 07:12:00 UTC (rev 10421)
+++ trunk/src/main/org/jboss/seam/security/crypto/PBKDF2Engine.java 2009-04-15 10:12:14 UTC (rev 10422)
@@ -1,9 +1,6 @@
package org.jboss.seam.security.crypto;
-import java.io.IOException;
import java.io.UnsupportedEncodingException;
-import java.security.NoSuchAlgorithmException;
-import java.security.SecureRandom;
/**
* Copied from Matthias Gartner's PKCS#5 implementation - see
Modified: trunk/src/main/org/jboss/seam/security/digest/DigestAuthenticator.java
===================================================================
--- trunk/src/main/org/jboss/seam/security/digest/DigestAuthenticator.java 2009-04-15 07:12:00 UTC (rev 10421)
+++ trunk/src/main/org/jboss/seam/security/digest/DigestAuthenticator.java 2009-04-15 10:12:14 UTC (rev 10422)
@@ -12,6 +12,7 @@
*/
public abstract class DigestAuthenticator
{
+ @SuppressWarnings("deprecation")
protected boolean validatePassword(String password)
{
Context ctx = Contexts.getSessionContext();
Modified: trunk/src/main/org/jboss/seam/security/management/JpaIdentityStore.java
===================================================================
--- trunk/src/main/org/jboss/seam/security/management/JpaIdentityStore.java 2009-04-15 07:12:00 UTC (rev 10421)
+++ trunk/src/main/org/jboss/seam/security/management/JpaIdentityStore.java 2009-04-15 10:12:14 UTC (rev 10422)
@@ -8,7 +8,6 @@
import java.lang.reflect.Type;
import java.security.GeneralSecurityException;
import java.security.Principal;
-import java.security.SecureRandom;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashSet;
Modified: trunk/src/main/org/jboss/seam/webservice/WSSecurityInterceptor.java
===================================================================
--- trunk/src/main/org/jboss/seam/webservice/WSSecurityInterceptor.java 2009-04-15 07:12:00 UTC (rev 10421)
+++ trunk/src/main/org/jboss/seam/webservice/WSSecurityInterceptor.java 2009-04-15 10:12:14 UTC (rev 10422)
@@ -14,7 +14,7 @@
around=AsynchronousInterceptor.class)
public class WSSecurityInterceptor extends SecurityInterceptor
{
-
+ @Override
public boolean isInterceptorEnabled()
{
return getComponent().isSecure() && getComponent().beanClassHasAnnotation("javax.jws.WebService");
Modified: trunk/src/test/unit/org/jboss/seam/test/unit/PasswordHashTest.java
===================================================================
--- trunk/src/test/unit/org/jboss/seam/test/unit/PasswordHashTest.java 2009-04-15 07:12:00 UTC (rev 10421)
+++ trunk/src/test/unit/org/jboss/seam/test/unit/PasswordHashTest.java 2009-04-15 10:12:14 UTC (rev 10422)
@@ -5,6 +5,7 @@
public class PasswordHashTest
{
+ @SuppressWarnings("deprecation")
@Test
public void testMd5Hash()
{
@@ -13,6 +14,7 @@
assert hash.equals("Xr4ilOzQ4PCOq3aQ0qbuaQ==");
}
+ @SuppressWarnings("deprecation")
@Test
public void testShaHash()
{
More information about the seam-commits
mailing list