Changed AttributeQueryHandle marchalling/unmarshalling to use exchange of bytes inste...
authorwassa <wassa@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Tue, 4 Jun 2002 18:54:56 +0000 (18:54 +0000)
committerwassa <wassa@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Tue, 4 Jun 2002 18:54:56 +0000 (18:54 +0000)
git-svn-id: https://subversion.switch.ch/svn/shibboleth/java-idp/trunk@26 ab3bd59b-922f-494d-bb5f-6f0a3c29deca

src/edu/internet2/middleware/shibboleth/common/AttributeQueryHandle.java
src/edu/internet2/middleware/shibboleth/hs/HandleService.java

index e165826..579e9b1 100755 (executable)
@@ -29,7 +29,7 @@ public class AttributeQueryHandle {
         * 
         */
 
-       public AttributeQueryHandle(String handle, SecretKey key)
+       public AttributeQueryHandle(byte[] handle, SecretKey key)
                throws HandleException {
 
                try {
@@ -111,12 +111,12 @@ public class AttributeQueryHandle {
        }
 
        /**
-        * Returns a <code>String</code> of ciphertext representing the <code>AttributeQueryHandle</code> instance.
+        * Returns bytes of ciphertext representing the <code>AttributeQueryHandle</code> instance.
         */
 
-       public String serialize() {
+       public byte[] serialize() {
 
-               return new String(Base64.encode(cipherTextHandle));
+               return Base64.encode(cipherTextHandle);
        }
 
        /**
index 0ebc569..4ae18fa 100755 (executable)
@@ -304,7 +304,7 @@ public class HandleService extends HttpServlet {
 
                        return assertionFactory
                                .getAssertion(
-                                       aqh.serialize(),
+                                       new String(aqh.serialize(), "ASCII"),
                                        shireURL,
                                        clientAddress,
                                        authType,