uk.ac.cam.ucs.webauth
Class WebauthDecoder

java.lang.Object
  |
  +--uk.ac.cam.ucs.webauth.WebauthDecoder

public class WebauthDecoder
extends Object

Implements a decoder for encoded binary strings as used by the authentication system. The encoding scheme is actually just BASE64 as defined in RFC 1521, except that the characters '+', '/', and '=' are replaced by '-', '.' and '_' to reduce the URL-encoding overhead.

Version:
$Revision: 1.3 $ $Date: 2005/03/30 13:17:05 $

Constructor Summary
WebauthDecoder()
          Default constructor
 
Method Summary
 byte[] decodeBuffer(String encoded)
          Decode a string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebauthDecoder

public WebauthDecoder()
Default constructor
Method Detail

decodeBuffer

public byte[] decodeBuffer(String encoded)
                    throws IOException
Decode a string.
Parameters:
encoded - the encoded string for processing
Returns:
the decoded data
Throws:
IOException - if the encoded string is malformed