ws-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject svn commit: r1481044 - in /webservices/wss4j/trunk/ws-security-stax/src/main/java/org/apache/wss4j/stax/impl/securityToken: HttpsSecurityTokenImpl.java KerberosClientSecurityToken.java KerberosServiceSecurityTokenImpl.java
Date Fri, 10 May 2013 15:06:38 GMT
Author: coheigea
Date: Fri May 10 15:06:38 2013
New Revision: 1481044

URL: http://svn.apache.org/r1481044
Log:
Removing some unnecessary exception throwing from the constructors of some of the tokens

Modified:
    webservices/wss4j/trunk/ws-security-stax/src/main/java/org/apache/wss4j/stax/impl/securityToken/HttpsSecurityTokenImpl.java
    webservices/wss4j/trunk/ws-security-stax/src/main/java/org/apache/wss4j/stax/impl/securityToken/KerberosClientSecurityToken.java
    webservices/wss4j/trunk/ws-security-stax/src/main/java/org/apache/wss4j/stax/impl/securityToken/KerberosServiceSecurityTokenImpl.java

Modified: webservices/wss4j/trunk/ws-security-stax/src/main/java/org/apache/wss4j/stax/impl/securityToken/HttpsSecurityTokenImpl.java
URL: http://svn.apache.org/viewvc/webservices/wss4j/trunk/ws-security-stax/src/main/java/org/apache/wss4j/stax/impl/securityToken/HttpsSecurityTokenImpl.java?rev=1481044&r1=1481043&r2=1481044&view=diff
==============================================================================
--- webservices/wss4j/trunk/ws-security-stax/src/main/java/org/apache/wss4j/stax/impl/securityToken/HttpsSecurityTokenImpl.java
(original)
+++ webservices/wss4j/trunk/ws-security-stax/src/main/java/org/apache/wss4j/stax/impl/securityToken/HttpsSecurityTokenImpl.java
Fri May 10 15:06:38 2013
@@ -41,16 +41,14 @@ public class HttpsSecurityTokenImpl exte
         httpDigestAuthentication,
     }
 
-    public HttpsSecurityTokenImpl(X509Certificate x509Certificate)
-            throws XMLSecurityException {
+    public HttpsSecurityTokenImpl(X509Certificate x509Certificate) {
 
         super(null, IDGenerator.generateID(null), null);
         setX509Certificates(new X509Certificate[]{x509Certificate});
         this.authenticationType = AuthenticationType.httpsClientAuthentication;
     }
 
-    public HttpsSecurityTokenImpl(boolean basicAuthentication, String username)
-            throws XMLSecurityException {
+    public HttpsSecurityTokenImpl(boolean basicAuthentication, String username) {
 
         super(null, IDGenerator.generateID(null), null);
         if (basicAuthentication) {

Modified: webservices/wss4j/trunk/ws-security-stax/src/main/java/org/apache/wss4j/stax/impl/securityToken/KerberosClientSecurityToken.java
URL: http://svn.apache.org/viewvc/webservices/wss4j/trunk/ws-security-stax/src/main/java/org/apache/wss4j/stax/impl/securityToken/KerberosClientSecurityToken.java?rev=1481044&r1=1481043&r2=1481044&view=diff
==============================================================================
--- webservices/wss4j/trunk/ws-security-stax/src/main/java/org/apache/wss4j/stax/impl/securityToken/KerberosClientSecurityToken.java
(original)
+++ webservices/wss4j/trunk/ws-security-stax/src/main/java/org/apache/wss4j/stax/impl/securityToken/KerberosClientSecurityToken.java
Fri May 10 15:06:38 2013
@@ -45,7 +45,7 @@ public class KerberosClientSecurityToken
     private Key secretKey;
     private byte[] ticket;
 
-    public KerberosClientSecurityToken(CallbackHandler callbackHandler, String id) throws
XMLSecurityException {
+    public KerberosClientSecurityToken(CallbackHandler callbackHandler, String id) {
         super(id, WSSecurityTokenConstants.KerberosToken);
         this.callbackHandler = callbackHandler;
     }

Modified: webservices/wss4j/trunk/ws-security-stax/src/main/java/org/apache/wss4j/stax/impl/securityToken/KerberosServiceSecurityTokenImpl.java
URL: http://svn.apache.org/viewvc/webservices/wss4j/trunk/ws-security-stax/src/main/java/org/apache/wss4j/stax/impl/securityToken/KerberosServiceSecurityTokenImpl.java?rev=1481044&r1=1481043&r2=1481044&view=diff
==============================================================================
--- webservices/wss4j/trunk/ws-security-stax/src/main/java/org/apache/wss4j/stax/impl/securityToken/KerberosServiceSecurityTokenImpl.java
(original)
+++ webservices/wss4j/trunk/ws-security-stax/src/main/java/org/apache/wss4j/stax/impl/securityToken/KerberosServiceSecurityTokenImpl.java
Fri May 10 15:06:38 2013
@@ -55,7 +55,7 @@ public class KerberosServiceSecurityToke
 
     public KerberosServiceSecurityTokenImpl(WSInboundSecurityContext wsInboundSecurityContext,
CallbackHandler callbackHandler,
                                             byte[] binaryContent, String kerberosTokenValueType,
String id,
-                                            WSSecurityTokenConstants.KeyIdentifier keyIdentifier)
throws XMLSecurityException {
+                                            WSSecurityTokenConstants.KeyIdentifier keyIdentifier)
{
         super(wsInboundSecurityContext, id, keyIdentifier);
         this.callbackHandler = callbackHandler;
         this.binaryContent = binaryContent;



Mime
View raw message