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

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