Author: shawkins
Date: 2012-08-17 15:34:53 -0400 (Fri, 17 Aug 2012)
New Revision: 4341
Modified:
trunk/jboss-integration/src/main/java/org/teiid/jboss/JBossSecurityHelper.java
Log:
TEIID-2151 clarifying the exception
Modified: trunk/jboss-integration/src/main/java/org/teiid/jboss/JBossSecurityHelper.java
===================================================================
---
trunk/jboss-integration/src/main/java/org/teiid/jboss/JBossSecurityHelper.java 2012-08-17
19:33:33 UTC (rev 4340)
+++
trunk/jboss-integration/src/main/java/org/teiid/jboss/JBossSecurityHelper.java 2012-08-17
19:34:53 UTC (rev 4341)
@@ -73,7 +73,7 @@
@Override
public boolean sameSubject(String securityDomain, Object context, Subject subject) {
if (context == null) {
- throw new TeiidRuntimeException("No context associated. More than like either
pass-through authentication should not be used or there are no security domains defined on
the embedded transport.");
+ throw new
TeiidRuntimeException(IntegrationPlugin.Util.gs(IntegrationPlugin.Event.TEIID50090));
}
SecurityContext previousContext = (SecurityContext)context;
Subject previousUser = previousContext.getSubjectInfo().getAuthenticatedSubject();