org.springframework.security.oauth.common
Class OAuthCodec

java.lang.Object
  extended by org.apache.commons.codec.net.URLCodec
      extended by org.springframework.security.oauth.common.OAuthCodec
All Implemented Interfaces:
org.apache.commons.codec.BinaryDecoder, org.apache.commons.codec.BinaryEncoder, org.apache.commons.codec.Decoder, org.apache.commons.codec.Encoder, org.apache.commons.codec.StringDecoder, org.apache.commons.codec.StringEncoder

public class OAuthCodec
extends org.apache.commons.codec.net.URLCodec

Utility for parameter encoding according to the OAuth spec.

Author:
Ryan Heaton

Field Summary
protected static BitSet SAFE_CHARACTERS
           
 
Fields inherited from class org.apache.commons.codec.net.URLCodec
charset, ESCAPE_CHAR, WWW_FORM_URL
 
Method Summary
static String oauthDecode(String value)
          Decode the specified value.
static String oauthEncode(String value)
          Encode the specified value.
 
Methods inherited from class org.apache.commons.codec.net.URLCodec
decode, decode, decode, decode, decodeUrl, encode, encode, encode, encode, encodeUrl, getDefaultCharset, getEncoding
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SAFE_CHARACTERS

protected static final BitSet SAFE_CHARACTERS
Method Detail

oauthEncode

public static String oauthEncode(String value)
Encode the specified value.

Parameters:
value - The value to encode.
Returns:
The encoded value.

oauthDecode

public static String oauthDecode(String value)
                          throws org.apache.commons.codec.DecoderException
Decode the specified value.

Parameters:
value - The value to decode.
Returns:
The decoded value.
Throws:
org.apache.commons.codec.DecoderException


Copyright © 2012. All Rights Reserved.