Author: prabath
Date: Tue May 11 08:53:52 2010
New Revision: 943049
URL: http://svn.apache.org/viewvc?rev=943049&view=rev
Log:
Fixing https://issues.apache.org/jira/browse/RAMPART-279 - Thanks Thilina for
the patch
Modified:
axis/axis2/java/rampart/trunk/modules/rampart-trust/src/main/java/org/apache/rahas/RahasData.java
Modified:
axis/axis2/java/rampart/trunk/modules/rampart-trust/src/main/java/org/apache/rahas/RahasData.java
URL:
http://svn.apache.org/viewvc/axis/axis2/java/rampart/trunk/modules/rampart-trust/src/main/java/org/apache/rahas/RahasData.java?rev=943049&r1=943048&r2=943049&view=diff
==============================================================================
---
axis/axis2/java/rampart/trunk/modules/rampart-trust/src/main/java/org/apache/rahas/RahasData.java
(original)
+++
axis/axis2/java/rampart/trunk/modules/rampart-trust/src/main/java/org/apache/rahas/RahasData.java
Tue May 11 08:53:52 2010
@@ -359,6 +359,11 @@ public class RahasData {
if (str.containsReference()) {
tokenId = str.getReference().getURI();
}
+ if(tokenId == null){
+ if(str.containsKeyIdentifier()){
+ tokenId = str.getKeyIdentifierValue();
+ }
+ }
} catch (WSSecurityException e) {
throw new TrustException("errorExtractingTokenId",e);
}