private static String c66DecodeCookieString(String urlEncodedString){
  if (urlEncodedString == null || urlEncodedString.length() == 0) {
    return urlEncodedString;
  }
  int length=urlEncodedString.length();
  char[] chars=new char[length];
  boolean firstStar=true;
  for (int i=0; i < length; i++) {
    char c=urlEncodedString.charAt(i);
    if (c == '-') {
      chars[i]='+';
    }
 else     if (c == '_') {
      chars[i]='/';
    }
 else     if (c == '.') {
      chars[i]='=';
    }
 else     if (c == '*') {
      if (firstStar) {
        firstStar=false;
        chars[i]='@';
      }
 else {
        chars[i]='#';
      }
    }
 else {
      chars[i]=c;
    }
  }
  return new String(chars);
}

private static String c66DecodeCookieString ( String urlEncodedString ) { if ( urlEncodedString == null || urlEncodedString . length ( ) == 0 ) { return urlEncodedString ; } int length = urlEncodedString . length ( ) ; char [ ] chars = new char [ length ] ; boolean firstStar = true ; for ( int i = 0 ; i < length ; i ++ ) { char c = urlEncodedString . charAt ( i ) ; if ( c == '-' ) { chars [ i ] = '+' ; } else if ( c == '_' ) { chars [ i ] = '/' ; } else if ( c == '.' ) { chars [ i ] = '=' ; } else if ( c == '*' ) { if ( firstStar ) { firstStar = false ; chars [ i ] = '@' ; } else { chars [ i ] = '#' ; } } else { chars [ i ] = c ; } } return new String ( chars ) ; }
converts opensso specific url safe char66 encoded string to native session id string . this is not a general purpose utility . this is meant only for internal use
