From 8481dd666cc31b26772cc4f4a0d8ff84e2c69aaa Mon Sep 17 00:00:00 2001 From: Juan Carlos Luciani Date: Tue, 12 Jun 2007 19:43:48 +0000 Subject: [PATCH] Setting constant to prevent the Xml namespace for xmldsig to be defined multiple times within SessionTokens and AuthTokens. This should result in smaller token sizes. --- .../Svc/src/com/novell/casa/authtoksvc/SecureTokenUtil.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CASA-auth-token/server-java/Svc/src/com/novell/casa/authtoksvc/SecureTokenUtil.java b/CASA-auth-token/server-java/Svc/src/com/novell/casa/authtoksvc/SecureTokenUtil.java index d2f672a8..898a86ad 100644 --- a/CASA-auth-token/server-java/Svc/src/com/novell/casa/authtoksvc/SecureTokenUtil.java +++ b/CASA-auth-token/server-java/Svc/src/com/novell/casa/authtoksvc/SecureTokenUtil.java @@ -699,6 +699,10 @@ public final class SecureTokenUtil InputStream inStream = null; try { + // Prevent the xml namespace for xmldsig from being + // specified multiple times. + Constants.setSignatureSpecNSprefix(""); + // Get document from our template inStream = new ByteArrayInputStream(m_secureTokenTemplate.getBytes());