axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ruchi...@apache.org
Subject svn commit: r476773 - in /webservices/axis2/branches/java/1_1/modules/security/src/org/apache/rampart: RampartMessageData.java errors.properties
Date Sun, 19 Nov 2006 08:53:10 GMT
Author: ruchithf
Date: Sun Nov 19 00:53:09 2006
New Revision: 476773

URL: http://svn.apache.org/viewvc?view=rev&rev=476773
Log:
RampartConfiguration is a MUST for policy to work

Modified:
    webservices/axis2/branches/java/1_1/modules/security/src/org/apache/rampart/RampartMessageData.java
    webservices/axis2/branches/java/1_1/modules/security/src/org/apache/rampart/errors.properties

Modified: webservices/axis2/branches/java/1_1/modules/security/src/org/apache/rampart/RampartMessageData.java
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/security/src/org/apache/rampart/RampartMessageData.java?view=diff&rev=476773&r1=476772&r2=476773
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/security/src/org/apache/rampart/RampartMessageData.java
(original)
+++ webservices/axis2/branches/java/1_1/modules/security/src/org/apache/rampart/RampartMessageData.java
Sun Nov 19 00:53:09 2006
@@ -205,6 +205,12 @@
             if(this.policyData != null) {
                 //Check for RST and RSTR for an SCT
                 RampartConfig rampartConfig = this.policyData.getRampartConfig();
+                
+                if(rampartConfig == null) {
+                    //We'r missing the extra info rampart needs
+                    throw new RampartException("rampartConigMissing");
+                }
+                
                 if((WSSHandlerConstants.RST_ACTON_SCT.equals(msgContext.getWSAAction())
                         || WSSHandlerConstants.RSTR_ACTON_SCT.equals(msgContext.getWSAAction()))
&&
                         this.policyData.getIssuerPolicy() != null) {

Modified: webservices/axis2/branches/java/1_1/modules/security/src/org/apache/rampart/errors.properties
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/security/src/org/apache/rampart/errors.properties?view=diff&rev=476773&r1=476772&r2=476773
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/security/src/org/apache/rampart/errors.properties
(original)
+++ webservices/axis2/branches/java/1_1/modules/security/src/org/apache/rampart/errors.properties
Sun Nov 19 00:53:09 2006
@@ -59,6 +59,9 @@
 tokenToBeCancelledInvalid = Token to be cancelled is invalid or expired 
 errorCreatingRSTTemplateForSCT=Error in creating RST template for SCT
 noSecurityToken = Missing security token
+noSecurityResults= No security processing results from the incoming message
+missingEncryptedKeyInRequest=There was no EncryptedKey in the request message
+rampartConigMissing = Please include configured RampartConfiguration assertion in policy
 
 #Errors in processors
 errorProcessingUT = Error in processing UsernameToken
@@ -67,4 +70,5 @@
 trustVerificationError = The certificate used for the signature is not trusted
 cannotFindAliasForCert = Could not get alias for certificate with {0}
 noCertForAlias = Could not get certificates for alias  {0}
-certPathVerificationFailed = Certificate path verification failed for certificate with subject
\ No newline at end of file
+certPathVerificationFailed = Certificate path verification failed for certificate with subject
+



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org


Mime
View raw message