[jbossws-commits] JBossWS SVN: r4912 - in stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security: element and 1 other directories.

jbossws-commits at lists.jboss.org jbossws-commits at lists.jboss.org
Mon Oct 29 06:52:58 EDT 2007


Author: alessio.soldano at jboss.com
Date: 2007-10-29 06:52:58 -0400 (Mon, 29 Oct 2007)
New Revision: 4912

Added:
   stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/exception/
   stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/exception/FailedAuthenticationException.java
   stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/exception/FailedCheckException.java
   stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/exception/InvalidSecurityHeaderException.java
   stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/exception/InvalidSecurityTokenException.java
   stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/exception/SecurityTokenUnavailableException.java
   stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/exception/UnsupportedAlgorithmException.java
   stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/exception/UnsupportedSecurityTokenException.java
   stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/exception/WSSecurityException.java
Removed:
   stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/FailedAuthenticationException.java
   stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/FailedCheckException.java
   stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/InvalidSecurityHeaderException.java
   stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/InvalidSecurityTokenException.java
   stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/SecurityTokenUnavailableException.java
   stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/UnsupportedAlgorithmException.java
   stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/UnsupportedSecurityTokenException.java
   stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/WSSecurityException.java
Modified:
   stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/BinarySecurityTokenValidator.java
   stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/DecodingOperation.java
   stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/DecryptionOperation.java
   stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/EncodingOperation.java
   stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/EncryptionOperation.java
   stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/KeyResolver.java
   stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/ReceiveUsernameOperation.java
   stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/RequireEncryptionOperation.java
   stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/RequireOperation.java
   stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/RequireSignatureOperation.java
   stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/RequireTargetableOperation.java
   stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/RequireTimestampOperation.java
   stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/STRTransform.java
   stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/SecurityDecoder.java
   stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/SecurityEncoder.java
   stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/SecurityStore.java
   stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/SendUsernameOperation.java
   stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/SignatureOperation.java
   stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/SignatureVerificationOperation.java
   stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/TimestampOperation.java
   stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/TimestampVerificationOperation.java
   stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/TokenOperation.java
   stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/WSSecurityDispatcher.java
   stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/element/BinarySecurityToken.java
   stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/element/DirectReference.java
   stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/element/EncryptedKey.java
   stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/element/KeyIdentifier.java
   stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/element/Reference.java
   stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/element/SecurityElement.java
   stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/element/SecurityHeader.java
   stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/element/SecurityTokenReference.java
   stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/element/Signature.java
   stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/element/Timestamp.java
   stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/element/UsernameToken.java
   stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/element/X509IssuerSerial.java
   stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/element/X509Token.java
Log:
Refactoring, moving exceptions to their own package


Modified: stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/BinarySecurityTokenValidator.java
===================================================================
--- stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/BinarySecurityTokenValidator.java	2007-10-29 10:24:23 UTC (rev 4911)
+++ stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/BinarySecurityTokenValidator.java	2007-10-29 10:52:58 UTC (rev 4912)
@@ -23,6 +23,7 @@
 
 import org.jboss.ws.extensions.security.element.BinarySecurityToken;
 import org.jboss.ws.extensions.security.element.X509Token;
+import org.jboss.ws.extensions.security.exception.WSSecurityException;
 
 
 /**

Modified: stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/DecodingOperation.java
===================================================================
--- stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/DecodingOperation.java	2007-10-29 10:24:23 UTC (rev 4911)
+++ stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/DecodingOperation.java	2007-10-29 10:52:58 UTC (rev 4912)
@@ -24,6 +24,7 @@
 import java.util.Collection;
 
 import org.jboss.ws.extensions.security.element.SecurityProcess;
+import org.jboss.ws.extensions.security.exception.WSSecurityException;
 import org.w3c.dom.Document;
 
 /**

Modified: stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/DecryptionOperation.java
===================================================================
--- stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/DecryptionOperation.java	2007-10-29 10:24:23 UTC (rev 4911)
+++ stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/DecryptionOperation.java	2007-10-29 10:52:58 UTC (rev 4912)
@@ -32,6 +32,9 @@
 import org.jboss.ws.extensions.security.element.ReferenceList;
 import org.jboss.ws.extensions.security.element.SecurityHeader;
 import org.jboss.ws.extensions.security.element.SecurityProcess;
+import org.jboss.ws.extensions.security.exception.FailedCheckException;
+import org.jboss.ws.extensions.security.exception.InvalidSecurityHeaderException;
+import org.jboss.ws.extensions.security.exception.WSSecurityException;
 import org.w3c.dom.Document;
 import org.w3c.dom.Element;
 

Modified: stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/EncodingOperation.java
===================================================================
--- stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/EncodingOperation.java	2007-10-29 10:24:23 UTC (rev 4911)
+++ stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/EncodingOperation.java	2007-10-29 10:52:58 UTC (rev 4912)
@@ -23,6 +23,7 @@
 
 import java.util.List;
 
+import org.jboss.ws.extensions.security.exception.WSSecurityException;
 import org.w3c.dom.Document;
 
 /**

Modified: stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/EncryptionOperation.java
===================================================================
--- stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/EncryptionOperation.java	2007-10-29 10:24:23 UTC (rev 4911)
+++ stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/EncryptionOperation.java	2007-10-29 10:52:58 UTC (rev 4912)
@@ -38,6 +38,7 @@
 import org.jboss.ws.extensions.security.element.ReferenceList;
 import org.jboss.ws.extensions.security.element.SecurityHeader;
 import org.jboss.ws.extensions.security.element.X509Token;
+import org.jboss.ws.extensions.security.exception.WSSecurityException;
 import org.w3c.dom.Document;
 import org.w3c.dom.Element;
 

Deleted: stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/FailedAuthenticationException.java
===================================================================
--- stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/FailedAuthenticationException.java	2007-10-29 10:24:23 UTC (rev 4911)
+++ stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/FailedAuthenticationException.java	2007-10-29 10:52:58 UTC (rev 4912)
@@ -1,64 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-*/
-package org.jboss.ws.extensions.security;
-
-import javax.xml.namespace.QName;
-
-
-/**
- * @author <a href="mailto:jason.greene at jboss.com">Jason T. Greene</a>
- * @version $Revision$
- */
-public class FailedAuthenticationException extends WSSecurityException
-{
-   public static final QName faultCode = new QName(Constants.WSSE_NS, "FailedAuthentication", Constants.WSSE_PREFIX);
-
-   public static final String faultString = "The security token could not be authenticated or authorized.";
-
-   public FailedAuthenticationException()
-   {
-      super(faultString);
-      setFaultCode(faultCode);
-      setFaultString(faultString);
-   }
-
-   public FailedAuthenticationException(Throwable cause)
-   {
-      super(faultString);
-      setFaultCode(faultCode);
-      setFaultString(faultString);
-   }
-
-   public FailedAuthenticationException(String message)
-   {
-      super(message);
-      setFaultCode(faultCode);
-      setFaultString(message);
-   }
-
-   public FailedAuthenticationException(String message, Throwable cause)
-   {
-      super(message, cause);
-      setFaultCode(faultCode);
-      setFaultString(message);
-   }
-}

Deleted: stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/FailedCheckException.java
===================================================================
--- stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/FailedCheckException.java	2007-10-29 10:24:23 UTC (rev 4911)
+++ stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/FailedCheckException.java	2007-10-29 10:52:58 UTC (rev 4912)
@@ -1,64 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-*/
-package org.jboss.ws.extensions.security;
-
-import javax.xml.namespace.QName;
-
-
-/**
- * @author <a href="mailto:jason.greene at jboss.com">Jason T. Greene</a>
- * @version $Revision$
- */
-public class FailedCheckException extends WSSecurityException
-{
-   public static final QName faultCode = new QName(Constants.WSSE_NS, "FailedCheck", Constants.WSSE_PREFIX);
-
-   public static final String faultString = "The signature or decryption was invlaid.";
-
-   public FailedCheckException()
-   {
-      super(faultString);
-      setFaultCode(faultCode);
-      setFaultString(faultString);
-   }
-
-   public FailedCheckException(Throwable cause)
-   {
-      super(faultString);
-      setFaultCode(faultCode);
-      setFaultString(faultString);
-   }
-
-   public FailedCheckException(String message)
-   {
-      super(message);
-      setFaultCode(faultCode);
-      setFaultString(message);
-   }
-
-   public FailedCheckException(String message, Throwable cause)
-   {
-      super(message, cause);
-      setFaultCode(faultCode);
-      setFaultString(message);
-   }
-}

Deleted: stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/InvalidSecurityHeaderException.java
===================================================================
--- stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/InvalidSecurityHeaderException.java	2007-10-29 10:24:23 UTC (rev 4911)
+++ stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/InvalidSecurityHeaderException.java	2007-10-29 10:52:58 UTC (rev 4912)
@@ -1,64 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-*/
-package org.jboss.ws.extensions.security;
-
-import javax.xml.namespace.QName;
-
-
-/**
- * @author <a href="mailto:jason.greene at jboss.com">Jason T. Greene</a>
- * @version $Revision$
- */
-public class InvalidSecurityHeaderException extends WSSecurityException
-{
-   public static final QName faultCode = new QName(Constants.WSSE_NS, "InvalidSecurity", Constants.WSSE_PREFIX);
-
-   public static final String faultString = "An error was dicovered processing the <wsse:Security> header.";
-
-   public InvalidSecurityHeaderException()
-   {
-      super(faultString);
-      setFaultCode(faultCode);
-      setFaultString(faultString);
-   }
-
-   public InvalidSecurityHeaderException(Throwable cause)
-   {
-      super(faultString);
-      setFaultCode(faultCode);
-      setFaultString(faultString);
-   }
-
-   public InvalidSecurityHeaderException(String message)
-   {
-      super(message);
-      setFaultCode(faultCode);
-      setFaultString(message);
-   }
-
-   public InvalidSecurityHeaderException(String message, Throwable cause)
-   {
-      super(message, cause);
-      setFaultCode(faultCode);
-      setFaultString(message);
-   }
-}

Deleted: stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/InvalidSecurityTokenException.java
===================================================================
--- stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/InvalidSecurityTokenException.java	2007-10-29 10:24:23 UTC (rev 4911)
+++ stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/InvalidSecurityTokenException.java	2007-10-29 10:52:58 UTC (rev 4912)
@@ -1,64 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-*/
-package org.jboss.ws.extensions.security;
-
-import javax.xml.namespace.QName;
-
-
-/**
- * @author <a href="mailto:jason.greene at jboss.com">Jason T. Greene</a>
- * @version $Revision$
- */
-public class InvalidSecurityTokenException extends WSSecurityException
-{
-   public static final QName faultCode = new QName(Constants.WSSE_NS, "InvlalidSecurityToken", Constants.WSSE_PREFIX);
-
-   public static final String faultString = "An invlaid security token was provided.";
-
-   public InvalidSecurityTokenException()
-   {
-      super(faultString);
-      setFaultCode(faultCode);
-      setFaultString(faultString);
-   }
-
-   public InvalidSecurityTokenException(Throwable cause)
-   {
-      super(faultString);
-      setFaultCode(faultCode);
-      setFaultString(faultString);
-   }
-
-   public InvalidSecurityTokenException(String message)
-   {
-      super(message);
-      setFaultCode(faultCode);
-      setFaultString(message);
-   }
-
-   public InvalidSecurityTokenException(String message, Throwable cause)
-   {
-      super(message, cause);
-      setFaultCode(faultCode);
-      setFaultString(message);
-   }
-}

Modified: stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/KeyResolver.java
===================================================================
--- stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/KeyResolver.java	2007-10-29 10:24:23 UTC (rev 4911)
+++ stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/KeyResolver.java	2007-10-29 10:52:58 UTC (rev 4912)
@@ -35,6 +35,8 @@
 import org.jboss.ws.extensions.security.element.SecurityTokenReference;
 import org.jboss.ws.extensions.security.element.X509IssuerSerial;
 import org.jboss.ws.extensions.security.element.X509Token;
+import org.jboss.ws.extensions.security.exception.SecurityTokenUnavailableException;
+import org.jboss.ws.extensions.security.exception.WSSecurityException;
 import org.w3c.dom.Element;
 
 

Modified: stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/ReceiveUsernameOperation.java
===================================================================
--- stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/ReceiveUsernameOperation.java	2007-10-29 10:24:23 UTC (rev 4911)
+++ stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/ReceiveUsernameOperation.java	2007-10-29 10:52:58 UTC (rev 4912)
@@ -26,6 +26,7 @@
 import org.jboss.ws.extensions.security.element.SecurityHeader;
 import org.jboss.ws.extensions.security.element.Token;
 import org.jboss.ws.extensions.security.element.UsernameToken;
+import org.jboss.ws.extensions.security.exception.WSSecurityException;
 import org.jboss.wsf.spi.SPIProvider;
 import org.jboss.wsf.spi.SPIProviderResolver;
 import org.jboss.wsf.spi.invocation.SecurityAdaptor;

Modified: stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/RequireEncryptionOperation.java
===================================================================
--- stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/RequireEncryptionOperation.java	2007-10-29 10:24:23 UTC (rev 4911)
+++ stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/RequireEncryptionOperation.java	2007-10-29 10:52:58 UTC (rev 4912)
@@ -22,6 +22,7 @@
 package org.jboss.ws.extensions.security;
 
 import org.jboss.ws.extensions.security.element.SecurityHeader;
+import org.jboss.ws.extensions.security.exception.WSSecurityException;
 
 
 public class RequireEncryptionOperation extends RequireTargetableOperation

Modified: stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/RequireOperation.java
===================================================================
--- stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/RequireOperation.java	2007-10-29 10:24:23 UTC (rev 4911)
+++ stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/RequireOperation.java	2007-10-29 10:52:58 UTC (rev 4912)
@@ -24,6 +24,7 @@
 import java.util.Collection;
 import java.util.List;
 
+import org.jboss.ws.extensions.security.exception.WSSecurityException;
 import org.w3c.dom.Document;
 
 /**

Modified: stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/RequireSignatureOperation.java
===================================================================
--- stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/RequireSignatureOperation.java	2007-10-29 10:24:23 UTC (rev 4911)
+++ stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/RequireSignatureOperation.java	2007-10-29 10:52:58 UTC (rev 4912)
@@ -22,6 +22,7 @@
 package org.jboss.ws.extensions.security;
 
 import org.jboss.ws.extensions.security.element.SecurityHeader;
+import org.jboss.ws.extensions.security.exception.WSSecurityException;
 
 
 public class RequireSignatureOperation extends RequireTargetableOperation

Modified: stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/RequireTargetableOperation.java
===================================================================
--- stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/RequireTargetableOperation.java	2007-10-29 10:24:23 UTC (rev 4911)
+++ stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/RequireTargetableOperation.java	2007-10-29 10:52:58 UTC (rev 4912)
@@ -28,6 +28,8 @@
 import javax.xml.namespace.QName;
 
 import org.jboss.ws.extensions.security.element.SecurityHeader;
+import org.jboss.ws.extensions.security.exception.FailedCheckException;
+import org.jboss.ws.extensions.security.exception.WSSecurityException;
 import org.w3c.dom.Document;
 import org.w3c.dom.Element;
 

Modified: stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/RequireTimestampOperation.java
===================================================================
--- stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/RequireTimestampOperation.java	2007-10-29 10:24:23 UTC (rev 4911)
+++ stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/RequireTimestampOperation.java	2007-10-29 10:52:58 UTC (rev 4912)
@@ -27,6 +27,8 @@
 
 import org.jboss.ws.extensions.security.element.SecurityHeader;
 import org.jboss.ws.extensions.security.element.Timestamp;
+import org.jboss.ws.extensions.security.exception.FailedCheckException;
+import org.jboss.ws.extensions.security.exception.WSSecurityException;
 import org.w3c.dom.Document;
 
 

Modified: stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/STRTransform.java
===================================================================
--- stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/STRTransform.java	2007-10-29 10:24:23 UTC (rev 4911)
+++ stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/STRTransform.java	2007-10-29 10:52:58 UTC (rev 4912)
@@ -38,6 +38,7 @@
 import org.jboss.ws.core.utils.ThreadLocalAssociation;
 import org.jboss.ws.extensions.security.element.BinarySecurityToken;
 import org.jboss.ws.extensions.security.element.SecurityTokenReference;
+import org.jboss.ws.extensions.security.exception.WSSecurityException;
 import org.w3c.dom.Element;
 import org.xml.sax.SAXException;
 

Modified: stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/SecurityDecoder.java
===================================================================
--- stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/SecurityDecoder.java	2007-10-29 10:24:23 UTC (rev 4911)
+++ stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/SecurityDecoder.java	2007-10-29 10:52:58 UTC (rev 4912)
@@ -34,6 +34,7 @@
 import org.jboss.ws.extensions.security.element.Timestamp;
 import org.jboss.ws.extensions.security.element.Token;
 import org.jboss.ws.extensions.security.element.UsernameToken;
+import org.jboss.ws.extensions.security.exception.WSSecurityException;
 import org.w3c.dom.Document;
 import org.w3c.dom.Element;
 

Modified: stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/SecurityEncoder.java
===================================================================
--- stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/SecurityEncoder.java	2007-10-29 10:24:23 UTC (rev 4911)
+++ stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/SecurityEncoder.java	2007-10-29 10:52:58 UTC (rev 4912)
@@ -25,6 +25,7 @@
 import java.util.List;
 
 import org.jboss.ws.extensions.security.element.SecurityHeader;
+import org.jboss.ws.extensions.security.exception.WSSecurityException;
 import org.w3c.dom.Document;
 import org.w3c.dom.Element;
 

Modified: stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/SecurityStore.java
===================================================================
--- stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/SecurityStore.java	2007-10-29 10:24:23 UTC (rev 4911)
+++ stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/SecurityStore.java	2007-10-29 10:52:58 UTC (rev 4912)
@@ -50,6 +50,8 @@
 import java.util.StringTokenizer;
 
 import org.jboss.logging.Logger;
+import org.jboss.ws.extensions.security.exception.FailedAuthenticationException;
+import org.jboss.ws.extensions.security.exception.WSSecurityException;
 
 /**
  * <code>SecurityStore</code> holds and loads the keystore and truststore required for encyption and signing.

Deleted: stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/SecurityTokenUnavailableException.java
===================================================================
--- stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/SecurityTokenUnavailableException.java	2007-10-29 10:24:23 UTC (rev 4911)
+++ stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/SecurityTokenUnavailableException.java	2007-10-29 10:52:58 UTC (rev 4912)
@@ -1,64 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-*/
-package org.jboss.ws.extensions.security;
-
-import javax.xml.namespace.QName;
-
-
-/**
- * @author <a href="mailto:jason.greene at jboss.com">Jason T. Greene</a>
- * @version $Revision$
- */
-public class SecurityTokenUnavailableException extends WSSecurityException
-{
-   public static final QName faultCode = new QName(Constants.WSSE_NS, "SecurityTokenUnavailable", Constants.WSSE_PREFIX);
-
-   public static final String faultString = "Referenced security token could not be retrieved.";
-
-   public SecurityTokenUnavailableException()
-   {
-      super(faultString);
-      setFaultCode(faultCode);
-      setFaultString(faultString);
-   }
-
-   public SecurityTokenUnavailableException(Throwable cause)
-   {
-      super(faultString);
-      setFaultCode(faultCode);
-      setFaultString(faultString);
-   }
-
-   public SecurityTokenUnavailableException(String message)
-   {
-      super(message);
-      setFaultCode(faultCode);
-      setFaultString(message);
-   }
-
-   public SecurityTokenUnavailableException(String message, Throwable cause)
-   {
-      super(message, cause);
-      setFaultCode(faultCode);
-      setFaultString(message);
-   }
-}

Modified: stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/SendUsernameOperation.java
===================================================================
--- stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/SendUsernameOperation.java	2007-10-29 10:24:23 UTC (rev 4911)
+++ stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/SendUsernameOperation.java	2007-10-29 10:52:58 UTC (rev 4912)
@@ -25,6 +25,7 @@
 
 import org.jboss.ws.extensions.security.element.SecurityHeader;
 import org.jboss.ws.extensions.security.element.UsernameToken;
+import org.jboss.ws.extensions.security.exception.WSSecurityException;
 import org.w3c.dom.Document;
 
 public class SendUsernameOperation implements EncodingOperation

Modified: stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/SignatureOperation.java
===================================================================
--- stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/SignatureOperation.java	2007-10-29 10:24:23 UTC (rev 4911)
+++ stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/SignatureOperation.java	2007-10-29 10:52:58 UTC (rev 4912)
@@ -39,6 +39,7 @@
 import org.jboss.ws.extensions.security.element.SecurityTokenReference;
 import org.jboss.ws.extensions.security.element.Signature;
 import org.jboss.ws.extensions.security.element.X509Token;
+import org.jboss.ws.extensions.security.exception.WSSecurityException;
 import org.w3c.dom.Document;
 import org.w3c.dom.Element;
 

Modified: stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/SignatureVerificationOperation.java
===================================================================
--- stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/SignatureVerificationOperation.java	2007-10-29 10:24:23 UTC (rev 4911)
+++ stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/SignatureVerificationOperation.java	2007-10-29 10:52:58 UTC (rev 4912)
@@ -31,6 +31,8 @@
 import org.jboss.ws.extensions.security.element.SecurityHeader;
 import org.jboss.ws.extensions.security.element.SecurityProcess;
 import org.jboss.ws.extensions.security.element.Signature;
+import org.jboss.ws.extensions.security.exception.FailedCheckException;
+import org.jboss.ws.extensions.security.exception.WSSecurityException;
 import org.w3c.dom.Document;
 
 public class SignatureVerificationOperation implements DecodingOperation

Modified: stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/TimestampOperation.java
===================================================================
--- stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/TimestampOperation.java	2007-10-29 10:24:23 UTC (rev 4911)
+++ stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/TimestampOperation.java	2007-10-29 10:52:58 UTC (rev 4912)
@@ -25,6 +25,7 @@
 
 import org.jboss.ws.extensions.security.element.SecurityHeader;
 import org.jboss.ws.extensions.security.element.Timestamp;
+import org.jboss.ws.extensions.security.exception.WSSecurityException;
 import org.w3c.dom.Document;
 
 public class TimestampOperation implements EncodingOperation

Modified: stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/TimestampVerificationOperation.java
===================================================================
--- stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/TimestampVerificationOperation.java	2007-10-29 10:24:23 UTC (rev 4911)
+++ stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/TimestampVerificationOperation.java	2007-10-29 10:52:58 UTC (rev 4912)
@@ -24,6 +24,8 @@
 import java.util.Calendar;
 
 import org.jboss.ws.extensions.security.element.Timestamp;
+import org.jboss.ws.extensions.security.exception.FailedCheckException;
+import org.jboss.ws.extensions.security.exception.WSSecurityException;
 import org.w3c.dom.Document;
 
 

Modified: stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/TokenOperation.java
===================================================================
--- stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/TokenOperation.java	2007-10-29 10:24:23 UTC (rev 4911)
+++ stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/TokenOperation.java	2007-10-29 10:52:58 UTC (rev 4912)
@@ -22,6 +22,7 @@
 package org.jboss.ws.extensions.security;
 
 import org.jboss.ws.extensions.security.element.Token;
+import org.jboss.ws.extensions.security.exception.WSSecurityException;
 import org.w3c.dom.Document;
 
 /**

Deleted: stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/UnsupportedAlgorithmException.java
===================================================================
--- stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/UnsupportedAlgorithmException.java	2007-10-29 10:24:23 UTC (rev 4911)
+++ stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/UnsupportedAlgorithmException.java	2007-10-29 10:52:58 UTC (rev 4912)
@@ -1,65 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-*/
-package org.jboss.ws.extensions.security;
-
-import javax.xml.namespace.QName;
-
-
-/**
- * @author <a href="mailto:jason.greene at jboss.com">Jason T. Greene</a>
- * @version $Revision$
- */
-
-public class UnsupportedAlgorithmException extends WSSecurityException
-{
-   public static final QName faultCode = new QName("UnsupportedAlgorithm", Constants.WSSE_PREFIX, Constants.WSSE_NS);
-
-   public static final String faultString = "An unsupported signature or encryption algorithm was used.";
-
-   public UnsupportedAlgorithmException()
-   {
-      super(faultString);
-      setFaultCode(faultCode);
-      setFaultString(faultString);
-   }
-
-   public UnsupportedAlgorithmException(Throwable cause)
-   {
-      super(faultString);
-      setFaultCode(faultCode);
-      setFaultString(faultString);
-   }
-
-   public UnsupportedAlgorithmException(String message)
-   {
-      super(message);
-      setFaultCode(faultCode);
-      setFaultString(message);
-   }
-
-   public UnsupportedAlgorithmException(String message, Throwable cause)
-   {
-      super(message, cause);
-      setFaultCode(faultCode);
-      setFaultString(message);
-   }
-}

Deleted: stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/UnsupportedSecurityTokenException.java
===================================================================
--- stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/UnsupportedSecurityTokenException.java	2007-10-29 10:24:23 UTC (rev 4911)
+++ stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/UnsupportedSecurityTokenException.java	2007-10-29 10:52:58 UTC (rev 4912)
@@ -1,64 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-*/
-package org.jboss.ws.extensions.security;
-
-import javax.xml.namespace.QName;
-
-
-/**
- * @author <a href="mailto:jason.greene at jboss.com">Jason T. Greene</a>
- * @version $Revision$
- */
-public class UnsupportedSecurityTokenException extends WSSecurityException
-{
-   public static final QName faultCode = new QName("UnsupportedSecurityToken", Constants.WSSE_PREFIX, Constants.WSSE_NS);
-
-   public static final String faultString = "An unsupported token was provided.";
-
-   public UnsupportedSecurityTokenException()
-   {
-      super(faultString);
-      setFaultCode(faultCode);
-      setFaultString(faultString);
-   }
-
-   public UnsupportedSecurityTokenException(Throwable cause)
-   {
-      super(faultString);
-      setFaultCode(faultCode);
-      setFaultString(faultString);
-   }
-
-   public UnsupportedSecurityTokenException(String message)
-   {
-      super(message);
-      setFaultCode(faultCode);
-      setFaultString(message);
-   }
-
-   public UnsupportedSecurityTokenException(String message, Throwable cause)
-   {
-      super(message, cause);
-      setFaultCode(faultCode);
-      setFaultString(message);
-   }
-}

Modified: stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/WSSecurityDispatcher.java
===================================================================
--- stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/WSSecurityDispatcher.java	2007-10-29 10:24:23 UTC (rev 4911)
+++ stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/WSSecurityDispatcher.java	2007-10-29 10:52:58 UTC (rev 4912)
@@ -39,6 +39,8 @@
 import org.jboss.ws.core.CommonSOAPFaultException;
 import org.jboss.ws.core.StubExt;
 import org.jboss.ws.core.soap.SOAPMessageImpl;
+import org.jboss.ws.extensions.security.exception.InvalidSecurityHeaderException;
+import org.jboss.ws.extensions.security.exception.WSSecurityException;
 import org.jboss.ws.metadata.umdm.EndpointMetaData;
 import org.jboss.ws.metadata.umdm.OperationMetaData;
 import org.jboss.ws.metadata.wsse.Config;

Deleted: stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/WSSecurityException.java
===================================================================
--- stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/WSSecurityException.java	2007-10-29 10:24:23 UTC (rev 4911)
+++ stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/WSSecurityException.java	2007-10-29 10:52:58 UTC (rev 4912)
@@ -1,74 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-*/
-package org.jboss.ws.extensions.security;
-
-import javax.xml.namespace.QName;
-
-/**
- * @author <a href="mailto:jason.greene at jboss.com">Jason T. Greene</a>
- * @version $Revision$
- */
-public class WSSecurityException extends Exception
-{
-   private boolean internal = false;
-
-   private QName faultCode = new QName(Constants.JBOSS_WSSE_NS, "InternalError", Constants.JBOSS_WSSE_PREFIX);
-
-   private String faultString = "An internal WS-Security error occurred. See log for details";
-
-   public WSSecurityException(String message)
-   {
-      super(message);
-      this.internal = true;
-   }
-
-   public WSSecurityException(String message, Throwable cause)
-   {
-      super(message, cause);
-      this.internal = true;
-   }
-
-   protected void setFaultCode(QName faultCode)
-   {
-      this.faultCode = faultCode;
-   }
-
-   protected void setFaultString(String faultMessage)
-   {
-      this.faultString = faultMessage;
-   }
-
-   public boolean isInternalError()
-   {
-      return internal;
-   }
-
-   public QName getFaultCode()
-   {
-      return faultCode;
-   }
-
-   public String getFaultString()
-   {
-      return faultString;
-   }
-}

Modified: stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/element/BinarySecurityToken.java
===================================================================
--- stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/element/BinarySecurityToken.java	2007-10-29 10:24:23 UTC (rev 4911)
+++ stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/element/BinarySecurityToken.java	2007-10-29 10:52:58 UTC (rev 4912)
@@ -23,7 +23,7 @@
 
 import org.jboss.ws.extensions.security.Constants;
 import org.jboss.ws.extensions.security.Util;
-import org.jboss.ws.extensions.security.WSSecurityException;
+import org.jboss.ws.extensions.security.exception.WSSecurityException;
 import org.w3c.dom.Document;
 import org.w3c.dom.Element;
 

Modified: stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/element/DirectReference.java
===================================================================
--- stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/element/DirectReference.java	2007-10-29 10:24:23 UTC (rev 4911)
+++ stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/element/DirectReference.java	2007-10-29 10:52:58 UTC (rev 4912)
@@ -22,7 +22,7 @@
 package org.jboss.ws.extensions.security.element;
 
 import org.jboss.ws.extensions.security.Constants;
-import org.jboss.ws.extensions.security.WSSecurityException;
+import org.jboss.ws.extensions.security.exception.WSSecurityException;
 import org.w3c.dom.Document;
 import org.w3c.dom.Element;
 

Modified: stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/element/EncryptedKey.java
===================================================================
--- stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/element/EncryptedKey.java	2007-10-29 10:24:23 UTC (rev 4911)
+++ stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/element/EncryptedKey.java	2007-10-29 10:52:58 UTC (rev 4912)
@@ -29,10 +29,10 @@
 import org.apache.xml.security.exceptions.XMLSecurityException;
 import org.apache.xml.security.keys.KeyInfo;
 import org.jboss.ws.extensions.security.Constants;
-import org.jboss.ws.extensions.security.InvalidSecurityHeaderException;
 import org.jboss.ws.extensions.security.KeyResolver;
 import org.jboss.ws.extensions.security.Util;
-import org.jboss.ws.extensions.security.WSSecurityException;
+import org.jboss.ws.extensions.security.exception.InvalidSecurityHeaderException;
+import org.jboss.ws.extensions.security.exception.WSSecurityException;
 import org.w3c.dom.Document;
 import org.w3c.dom.Element;
 

Modified: stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/element/KeyIdentifier.java
===================================================================
--- stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/element/KeyIdentifier.java	2007-10-29 10:24:23 UTC (rev 4911)
+++ stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/element/KeyIdentifier.java	2007-10-29 10:52:58 UTC (rev 4912)
@@ -27,7 +27,7 @@
 import org.apache.xml.security.utils.Base64;
 import org.apache.xml.security.utils.XMLUtils;
 import org.jboss.ws.extensions.security.Constants;
-import org.jboss.ws.extensions.security.WSSecurityException;
+import org.jboss.ws.extensions.security.exception.WSSecurityException;
 import org.w3c.dom.Document;
 import org.w3c.dom.Element;
 

Modified: stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/element/Reference.java
===================================================================
--- stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/element/Reference.java	2007-10-29 10:24:23 UTC (rev 4911)
+++ stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/element/Reference.java	2007-10-29 10:52:58 UTC (rev 4912)
@@ -21,7 +21,7 @@
 */
 package org.jboss.ws.extensions.security.element;
 
-import org.jboss.ws.extensions.security.WSSecurityException;
+import org.jboss.ws.extensions.security.exception.WSSecurityException;
 import org.w3c.dom.Element;
 
 abstract public class Reference implements SecurityElement

Modified: stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/element/SecurityElement.java
===================================================================
--- stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/element/SecurityElement.java	2007-10-29 10:24:23 UTC (rev 4911)
+++ stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/element/SecurityElement.java	2007-10-29 10:52:58 UTC (rev 4912)
@@ -21,7 +21,7 @@
 */
 package org.jboss.ws.extensions.security.element;
 
-import org.jboss.ws.extensions.security.WSSecurityException;
+import org.jboss.ws.extensions.security.exception.WSSecurityException;
 import org.w3c.dom.Element;
 
 

Modified: stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/element/SecurityHeader.java
===================================================================
--- stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/element/SecurityHeader.java	2007-10-29 10:24:23 UTC (rev 4911)
+++ stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/element/SecurityHeader.java	2007-10-29 10:52:58 UTC (rev 4912)
@@ -28,9 +28,9 @@
 import org.jboss.ws.extensions.security.Constants;
 import org.jboss.ws.extensions.security.KeyResolver;
 import org.jboss.ws.extensions.security.SecurityStore;
-import org.jboss.ws.extensions.security.UnsupportedSecurityTokenException;
 import org.jboss.ws.extensions.security.Util;
-import org.jboss.ws.extensions.security.WSSecurityException;
+import org.jboss.ws.extensions.security.exception.UnsupportedSecurityTokenException;
+import org.jboss.ws.extensions.security.exception.WSSecurityException;
 import org.w3c.dom.Document;
 import org.w3c.dom.Element;
 

Modified: stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/element/SecurityTokenReference.java
===================================================================
--- stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/element/SecurityTokenReference.java	2007-10-29 10:24:23 UTC (rev 4911)
+++ stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/element/SecurityTokenReference.java	2007-10-29 10:52:58 UTC (rev 4912)
@@ -23,7 +23,7 @@
 
 import org.jboss.ws.extensions.security.Constants;
 import org.jboss.ws.extensions.security.Util;
-import org.jboss.ws.extensions.security.WSSecurityException;
+import org.jboss.ws.extensions.security.exception.WSSecurityException;
 import org.w3c.dom.Document;
 import org.w3c.dom.Element;
 

Modified: stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/element/Signature.java
===================================================================
--- stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/element/Signature.java	2007-10-29 10:24:23 UTC (rev 4911)
+++ stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/element/Signature.java	2007-10-29 10:52:58 UTC (rev 4912)
@@ -26,7 +26,7 @@
 import org.apache.xml.security.exceptions.XMLSecurityException;
 import org.apache.xml.security.signature.XMLSignature;
 import org.jboss.ws.extensions.security.KeyResolver;
-import org.jboss.ws.extensions.security.WSSecurityException;
+import org.jboss.ws.extensions.security.exception.WSSecurityException;
 import org.w3c.dom.Element;
 
 

Modified: stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/element/Timestamp.java
===================================================================
--- stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/element/Timestamp.java	2007-10-29 10:24:23 UTC (rev 4911)
+++ stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/element/Timestamp.java	2007-10-29 10:52:58 UTC (rev 4912)
@@ -28,7 +28,7 @@
 import org.apache.xml.security.utils.XMLUtils;
 import org.jboss.ws.extensions.security.Constants;
 import org.jboss.ws.extensions.security.Util;
-import org.jboss.ws.extensions.security.WSSecurityException;
+import org.jboss.ws.extensions.security.exception.WSSecurityException;
 import org.jboss.xb.binding.SimpleTypeBindings;
 import org.w3c.dom.Document;
 import org.w3c.dom.Element;

Modified: stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/element/UsernameToken.java
===================================================================
--- stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/element/UsernameToken.java	2007-10-29 10:24:23 UTC (rev 4911)
+++ stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/element/UsernameToken.java	2007-10-29 10:52:58 UTC (rev 4912)
@@ -24,7 +24,7 @@
 import org.apache.xml.security.utils.XMLUtils;
 import org.jboss.ws.extensions.security.Constants;
 import org.jboss.ws.extensions.security.Util;
-import org.jboss.ws.extensions.security.WSSecurityException;
+import org.jboss.ws.extensions.security.exception.WSSecurityException;
 import org.w3c.dom.Document;
 import org.w3c.dom.Element;
 

Modified: stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/element/X509IssuerSerial.java
===================================================================
--- stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/element/X509IssuerSerial.java	2007-10-29 10:24:23 UTC (rev 4911)
+++ stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/element/X509IssuerSerial.java	2007-10-29 10:52:58 UTC (rev 4912)
@@ -25,9 +25,9 @@
 
 import org.apache.xml.security.utils.XMLUtils;
 import org.jboss.ws.extensions.security.Constants;
-import org.jboss.ws.extensions.security.InvalidSecurityHeaderException;
 import org.jboss.ws.extensions.security.Util;
-import org.jboss.ws.extensions.security.WSSecurityException;
+import org.jboss.ws.extensions.security.exception.InvalidSecurityHeaderException;
+import org.jboss.ws.extensions.security.exception.WSSecurityException;
 import org.w3c.dom.Document;
 import org.w3c.dom.Element;
 

Modified: stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/element/X509Token.java
===================================================================
--- stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/element/X509Token.java	2007-10-29 10:24:23 UTC (rev 4911)
+++ stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/element/X509Token.java	2007-10-29 10:52:58 UTC (rev 4912)
@@ -29,7 +29,7 @@
 import org.apache.xml.security.utils.XMLUtils;
 import org.jboss.util.Base64;
 import org.jboss.ws.extensions.security.Constants;
-import org.jboss.ws.extensions.security.WSSecurityException;
+import org.jboss.ws.extensions.security.exception.WSSecurityException;
 import org.w3c.dom.Document;
 import org.w3c.dom.Element;
 

Copied: stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/exception/FailedAuthenticationException.java (from rev 4893, stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/FailedAuthenticationException.java)
===================================================================
--- stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/exception/FailedAuthenticationException.java	                        (rev 0)
+++ stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/exception/FailedAuthenticationException.java	2007-10-29 10:52:58 UTC (rev 4912)
@@ -0,0 +1,66 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2005, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.ws.extensions.security.exception;
+
+import javax.xml.namespace.QName;
+
+import org.jboss.ws.extensions.security.Constants;
+
+
+/**
+ * @author <a href="mailto:jason.greene at jboss.com">Jason T. Greene</a>
+ * @version $Revision$
+ */
+public class FailedAuthenticationException extends WSSecurityException
+{
+   public static final QName faultCode = new QName(Constants.WSSE_NS, "FailedAuthentication", Constants.WSSE_PREFIX);
+
+   public static final String faultString = "The security token could not be authenticated or authorized.";
+
+   public FailedAuthenticationException()
+   {
+      super(faultString);
+      setFaultCode(faultCode);
+      setFaultString(faultString);
+   }
+
+   public FailedAuthenticationException(Throwable cause)
+   {
+      super(faultString);
+      setFaultCode(faultCode);
+      setFaultString(faultString);
+   }
+
+   public FailedAuthenticationException(String message)
+   {
+      super(message);
+      setFaultCode(faultCode);
+      setFaultString(message);
+   }
+
+   public FailedAuthenticationException(String message, Throwable cause)
+   {
+      super(message, cause);
+      setFaultCode(faultCode);
+      setFaultString(message);
+   }
+}

Copied: stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/exception/FailedCheckException.java (from rev 4893, stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/FailedCheckException.java)
===================================================================
--- stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/exception/FailedCheckException.java	                        (rev 0)
+++ stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/exception/FailedCheckException.java	2007-10-29 10:52:58 UTC (rev 4912)
@@ -0,0 +1,66 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2005, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.ws.extensions.security.exception;
+
+import javax.xml.namespace.QName;
+
+import org.jboss.ws.extensions.security.Constants;
+
+
+/**
+ * @author <a href="mailto:jason.greene at jboss.com">Jason T. Greene</a>
+ * @version $Revision$
+ */
+public class FailedCheckException extends WSSecurityException
+{
+   public static final QName faultCode = new QName(Constants.WSSE_NS, "FailedCheck", Constants.WSSE_PREFIX);
+
+   public static final String faultString = "The signature or decryption was invlaid.";
+
+   public FailedCheckException()
+   {
+      super(faultString);
+      setFaultCode(faultCode);
+      setFaultString(faultString);
+   }
+
+   public FailedCheckException(Throwable cause)
+   {
+      super(faultString);
+      setFaultCode(faultCode);
+      setFaultString(faultString);
+   }
+
+   public FailedCheckException(String message)
+   {
+      super(message);
+      setFaultCode(faultCode);
+      setFaultString(message);
+   }
+
+   public FailedCheckException(String message, Throwable cause)
+   {
+      super(message, cause);
+      setFaultCode(faultCode);
+      setFaultString(message);
+   }
+}

Copied: stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/exception/InvalidSecurityHeaderException.java (from rev 4893, stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/InvalidSecurityHeaderException.java)
===================================================================
--- stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/exception/InvalidSecurityHeaderException.java	                        (rev 0)
+++ stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/exception/InvalidSecurityHeaderException.java	2007-10-29 10:52:58 UTC (rev 4912)
@@ -0,0 +1,66 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2005, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.ws.extensions.security.exception;
+
+import javax.xml.namespace.QName;
+
+import org.jboss.ws.extensions.security.Constants;
+
+
+/**
+ * @author <a href="mailto:jason.greene at jboss.com">Jason T. Greene</a>
+ * @version $Revision$
+ */
+public class InvalidSecurityHeaderException extends WSSecurityException
+{
+   public static final QName faultCode = new QName(Constants.WSSE_NS, "InvalidSecurity", Constants.WSSE_PREFIX);
+
+   public static final String faultString = "An error was dicovered processing the <wsse:Security> header.";
+
+   public InvalidSecurityHeaderException()
+   {
+      super(faultString);
+      setFaultCode(faultCode);
+      setFaultString(faultString);
+   }
+
+   public InvalidSecurityHeaderException(Throwable cause)
+   {
+      super(faultString);
+      setFaultCode(faultCode);
+      setFaultString(faultString);
+   }
+
+   public InvalidSecurityHeaderException(String message)
+   {
+      super(message);
+      setFaultCode(faultCode);
+      setFaultString(message);
+   }
+
+   public InvalidSecurityHeaderException(String message, Throwable cause)
+   {
+      super(message, cause);
+      setFaultCode(faultCode);
+      setFaultString(message);
+   }
+}

Copied: stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/exception/InvalidSecurityTokenException.java (from rev 4893, stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/InvalidSecurityTokenException.java)
===================================================================
--- stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/exception/InvalidSecurityTokenException.java	                        (rev 0)
+++ stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/exception/InvalidSecurityTokenException.java	2007-10-29 10:52:58 UTC (rev 4912)
@@ -0,0 +1,66 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2005, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.ws.extensions.security.exception;
+
+import javax.xml.namespace.QName;
+
+import org.jboss.ws.extensions.security.Constants;
+
+
+/**
+ * @author <a href="mailto:jason.greene at jboss.com">Jason T. Greene</a>
+ * @version $Revision$
+ */
+public class InvalidSecurityTokenException extends WSSecurityException
+{
+   public static final QName faultCode = new QName(Constants.WSSE_NS, "InvlalidSecurityToken", Constants.WSSE_PREFIX);
+
+   public static final String faultString = "An invlaid security token was provided.";
+
+   public InvalidSecurityTokenException()
+   {
+      super(faultString);
+      setFaultCode(faultCode);
+      setFaultString(faultString);
+   }
+
+   public InvalidSecurityTokenException(Throwable cause)
+   {
+      super(faultString);
+      setFaultCode(faultCode);
+      setFaultString(faultString);
+   }
+
+   public InvalidSecurityTokenException(String message)
+   {
+      super(message);
+      setFaultCode(faultCode);
+      setFaultString(message);
+   }
+
+   public InvalidSecurityTokenException(String message, Throwable cause)
+   {
+      super(message, cause);
+      setFaultCode(faultCode);
+      setFaultString(message);
+   }
+}

Copied: stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/exception/SecurityTokenUnavailableException.java (from rev 4893, stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/SecurityTokenUnavailableException.java)
===================================================================
--- stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/exception/SecurityTokenUnavailableException.java	                        (rev 0)
+++ stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/exception/SecurityTokenUnavailableException.java	2007-10-29 10:52:58 UTC (rev 4912)
@@ -0,0 +1,66 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2005, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.ws.extensions.security.exception;
+
+import javax.xml.namespace.QName;
+
+import org.jboss.ws.extensions.security.Constants;
+
+
+/**
+ * @author <a href="mailto:jason.greene at jboss.com">Jason T. Greene</a>
+ * @version $Revision$
+ */
+public class SecurityTokenUnavailableException extends WSSecurityException
+{
+   public static final QName faultCode = new QName(Constants.WSSE_NS, "SecurityTokenUnavailable", Constants.WSSE_PREFIX);
+
+   public static final String faultString = "Referenced security token could not be retrieved.";
+
+   public SecurityTokenUnavailableException()
+   {
+      super(faultString);
+      setFaultCode(faultCode);
+      setFaultString(faultString);
+   }
+
+   public SecurityTokenUnavailableException(Throwable cause)
+   {
+      super(faultString);
+      setFaultCode(faultCode);
+      setFaultString(faultString);
+   }
+
+   public SecurityTokenUnavailableException(String message)
+   {
+      super(message);
+      setFaultCode(faultCode);
+      setFaultString(message);
+   }
+
+   public SecurityTokenUnavailableException(String message, Throwable cause)
+   {
+      super(message, cause);
+      setFaultCode(faultCode);
+      setFaultString(message);
+   }
+}

Copied: stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/exception/UnsupportedAlgorithmException.java (from rev 4893, stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/UnsupportedAlgorithmException.java)
===================================================================
--- stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/exception/UnsupportedAlgorithmException.java	                        (rev 0)
+++ stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/exception/UnsupportedAlgorithmException.java	2007-10-29 10:52:58 UTC (rev 4912)
@@ -0,0 +1,67 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2005, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.ws.extensions.security.exception;
+
+import javax.xml.namespace.QName;
+
+import org.jboss.ws.extensions.security.Constants;
+
+
+/**
+ * @author <a href="mailto:jason.greene at jboss.com">Jason T. Greene</a>
+ * @version $Revision$
+ */
+
+public class UnsupportedAlgorithmException extends WSSecurityException
+{
+   public static final QName faultCode = new QName("UnsupportedAlgorithm", Constants.WSSE_PREFIX, Constants.WSSE_NS);
+
+   public static final String faultString = "An unsupported signature or encryption algorithm was used.";
+
+   public UnsupportedAlgorithmException()
+   {
+      super(faultString);
+      setFaultCode(faultCode);
+      setFaultString(faultString);
+   }
+
+   public UnsupportedAlgorithmException(Throwable cause)
+   {
+      super(faultString);
+      setFaultCode(faultCode);
+      setFaultString(faultString);
+   }
+
+   public UnsupportedAlgorithmException(String message)
+   {
+      super(message);
+      setFaultCode(faultCode);
+      setFaultString(message);
+   }
+
+   public UnsupportedAlgorithmException(String message, Throwable cause)
+   {
+      super(message, cause);
+      setFaultCode(faultCode);
+      setFaultString(message);
+   }
+}

Copied: stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/exception/UnsupportedSecurityTokenException.java (from rev 4893, stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/UnsupportedSecurityTokenException.java)
===================================================================
--- stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/exception/UnsupportedSecurityTokenException.java	                        (rev 0)
+++ stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/exception/UnsupportedSecurityTokenException.java	2007-10-29 10:52:58 UTC (rev 4912)
@@ -0,0 +1,66 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2005, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.ws.extensions.security.exception;
+
+import javax.xml.namespace.QName;
+
+import org.jboss.ws.extensions.security.Constants;
+
+
+/**
+ * @author <a href="mailto:jason.greene at jboss.com">Jason T. Greene</a>
+ * @version $Revision$
+ */
+public class UnsupportedSecurityTokenException extends WSSecurityException
+{
+   public static final QName faultCode = new QName("UnsupportedSecurityToken", Constants.WSSE_PREFIX, Constants.WSSE_NS);
+
+   public static final String faultString = "An unsupported token was provided.";
+
+   public UnsupportedSecurityTokenException()
+   {
+      super(faultString);
+      setFaultCode(faultCode);
+      setFaultString(faultString);
+   }
+
+   public UnsupportedSecurityTokenException(Throwable cause)
+   {
+      super(faultString);
+      setFaultCode(faultCode);
+      setFaultString(faultString);
+   }
+
+   public UnsupportedSecurityTokenException(String message)
+   {
+      super(message);
+      setFaultCode(faultCode);
+      setFaultString(message);
+   }
+
+   public UnsupportedSecurityTokenException(String message, Throwable cause)
+   {
+      super(message, cause);
+      setFaultCode(faultCode);
+      setFaultString(message);
+   }
+}

Copied: stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/exception/WSSecurityException.java (from rev 4893, stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/WSSecurityException.java)
===================================================================
--- stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/exception/WSSecurityException.java	                        (rev 0)
+++ stack/native/branches/asoldano/trunk/src/main/java/org/jboss/ws/extensions/security/exception/WSSecurityException.java	2007-10-29 10:52:58 UTC (rev 4912)
@@ -0,0 +1,76 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2005, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.ws.extensions.security.exception;
+
+import javax.xml.namespace.QName;
+
+import org.jboss.ws.extensions.security.Constants;
+
+/**
+ * @author <a href="mailto:jason.greene at jboss.com">Jason T. Greene</a>
+ * @version $Revision$
+ */
+public class WSSecurityException extends Exception
+{
+   private boolean internal = false;
+
+   private QName faultCode = new QName(Constants.JBOSS_WSSE_NS, "InternalError", Constants.JBOSS_WSSE_PREFIX);
+
+   private String faultString = "An internal WS-Security error occurred. See log for details";
+
+   public WSSecurityException(String message)
+   {
+      super(message);
+      this.internal = true;
+   }
+
+   public WSSecurityException(String message, Throwable cause)
+   {
+      super(message, cause);
+      this.internal = true;
+   }
+
+   protected void setFaultCode(QName faultCode)
+   {
+      this.faultCode = faultCode;
+   }
+
+   protected void setFaultString(String faultMessage)
+   {
+      this.faultString = faultMessage;
+   }
+
+   public boolean isInternalError()
+   {
+      return internal;
+   }
+
+   public QName getFaultCode()
+   {
+      return faultCode;
+   }
+
+   public String getFaultString()
+   {
+      return faultString;
+   }
+}




More information about the jbossws-commits mailing list