@ -188,37 +188,31 @@ public class OpenIDAuthenticationFilter extends AbstractAuthenticationProcessing
@@ -188,37 +188,31 @@ public class OpenIDAuthenticationFilter extends AbstractAuthenticationProcessing
Errorerr=newAssertionError("The Java platform guarantees UTF-8 support, but it seemingly is not present.");
err.initCause(e);
throwerr;
}
returnsb.toString();
}
/**
@ -276,4 +270,20 @@ public class OpenIDAuthenticationFilter extends AbstractAuthenticationProcessing
@@ -276,4 +270,20 @@ public class OpenIDAuthenticationFilter extends AbstractAuthenticationProcessing
Assert.notNull(returnToUrlParameters,"returnToUrlParameters cannot be null");
this.returnToUrlParameters=returnToUrlParameters;
}
/**
*PerformsURLencodingwithUTF-8
*
*@paramvaluethevaluetoURLencode
*@returntheencodedvalue
*/
privateStringutf8UrlEncode(Stringvalue){
try{
returnURLEncoder.encode(value,"UTF-8");
}catch(UnsupportedEncodingExceptione){
Errorerr=newAssertionError("The Java platform guarantees UTF-8 support, but it seemingly is not present.");