Sending private key to the cookieError with cookie-value when adding a new Spring SessionSort a Map<Key, Value> by valuesWhat is the difference between public, protected, package-private and private in Java?How do I set/unset a cookie with jQuery?Local Storage vs CookiesiOS RSA Public Key send to serverHow to read RSA private key in Java from string created in Python?Generate a public key in an elliptic curve algorithm using a given private keyGenerate AES key from RSA encoded AES keyJSch giving invalid private key errors for key pair generated by JavaJava RSA private key generation when public key is known
How is the Team Scooby Doo funded?
Kerning feedback on logo
Writing a love interest for my hero
Job offer without any details but asking me to withdraw other applications - is it normal?
Gas pipes - why does gas burn "outwards?"
How to split a string by the third .(dot) delimiter
Who are the two thieves that appear the opening of Batman: TAS?
If you have multiple situational racial save bonuses and are in a situation where they all apply do they stack?
What does "synoptic" mean in avionics?
How do I politely hint customers to leave my store, without pretending to need leave store myself?
Is it possible to PIVOT on a LIKE statement
Renewed US passport, did not receive expired US passport
Random point on a sphere
Kingdom Map and Travel Pace
Why is the T-1000 humanoid?
How do I improve my SXA sites Google PageSpeed Insights Score?
Evidence that matrix multiplication cannot be done in O(n^2 poly(log(n))) time
Are scroll bars dead in 2019?
A Little Riddle
Can I toggle Do Not Disturb on/off on my Mac as easily as I can on my iPhone?
Tracks in the snow
Should I leave the first authourship of our paper to the student who did the project whereas I solved it?
Why did it become so much more expensive to start a university?
Can I cast Sunbeam if both my hands are busy?
Sending private key to the cookie
Error with cookie-value when adding a new Spring SessionSort a Map<Key, Value> by valuesWhat is the difference between public, protected, package-private and private in Java?How do I set/unset a cookie with jQuery?Local Storage vs CookiesiOS RSA Public Key send to serverHow to read RSA private key in Java from string created in Python?Generate a public key in an elliptic curve algorithm using a given private keyGenerate AES key from RSA encoded AES keyJSch giving invalid private key errors for key pair generated by JavaJava RSA private key generation when public key is known
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I have generated a private key using below function -
public static String getPrivateKey() {
KeyPairGenerator keyPairGenerator;
KeyPair keyPair = null;
try
keyPairGenerator = KeyPairGenerator.getInstance("RSA");
keyPairGenerator.initialize(2048);
keyPair = keyPairGenerator.generateKeyPair();
PrivateKey privateKey = keyPair.getPrivate();
catch (NoSuchAlgorithmException e)
// TODO Auto-generated catch block
e.printStackTrace();
return Base64.getMimeEncoder().encodeToString( keyPair.getPrivate().getEncoded());
I am trying to set this to my cookie using below-
Cookie ck = new Cookie("privatekey", privateKey);// creating cookie object
ck.setMaxAge(120);
response.addCookie(ck);// adding cookie in the response
I am getting below error. The key is in string format itself. How can I do this? Do I need to change it to some format?
An invalid character [13] was present in the Cookie value
My private key generated looks like below-
MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQCrQC7J4ZvuXi9u8nK+BLGM5PeP
FOeirNatorzG1EN63V09O2GquR+/OEUI8JesERlf+OUBOo4tjO7O1dgnoZMJUkxwhS5zaCooKkl1
1y728sA4//eHhIjpsNdDQkW3a4NKHo1w5zigcgG08Uz9aLdfy/VlK3mFB8RGliAxUvNzSw+zzkpw
rEEMdIEWYJm9U73+2giESGqRJA8zDIRJ5nSsG3PNuA05K/DZSR/103R0bsZ4BlcinSt5zKmRH5vt
+srX/u8tLX/pF+w5G1S/yzoP3CrP/AtLrEB6Ts5ZmE7Pj4IFdcY2HfNpphbEKCFbqk5E0EkarZZD
JFujnS6PqehtAgMBAAECggEAPYF1zIg9KuWk/6IQV/Lzmfj6eOc3MpQFHqPeTUMbYVt0C3PyZhDL
ODCLiuRudRxHEtMf3MsdGXsOojbnxYQgfS6Tya3ruwNkcLyPWcWJVqRlKZO1YXTWf6hGCCAbTf9N
TiefATfqfKW1uzkXP8SGZ9+nKUjuAjuB4SA2O8DhMzzhfpwXPHmuWRk58llBfZe8RJn1sO0wUztr
BRSvxRpUChBY2xrdMQFIQOnR9qa93MxyjP5qdoqc6zwoZ3XQ0fMwTWwb1WMdf4fFJ/BJuZSDfgoG
ejLgtcVqJY3wB8Pr0NPGBn2Jov+VhQAbm+B7AKue0DX6yw1qRXxIbLAnAlkRgQKBgQDhR2pPcZTL
mLICUge3+2W4ErE58++lIYPvis0inaISPl8IO5XPWdBprOlR67xRGx5dtRpOBsPgGCerNUf2uUSf
cBFJXOP7KgO9qpTHYuwmAizLszDJNdvvLmn3xXuqv0oGjqfG50zZYtJatCFAlu1AOpScZMaE+QHH
tiEUx0Y33QKBgQDCmp5Bgq5/A73DfIJBi1y+HYMpaZ5Xq6n5f6lTmgQd0YIuD90cRFjh4JbZiodU
Yg4YIfI9pr7qQpe0/kM6XMHN3Y8Zfx6za1djZUosETcTVGJtyu0dwJDpRH9N2SzZyHNZHV1t0wM2
eNVsthTEm9wOoQ2i6TETTYAn+79yyWkx0QKBgCqdJLoEZT4iE0InHDisQHCScJ3iy+kzrs5oNief
I+JJlBZtlwgTGD51K+mIKyY4eAUH1gL+epzwVMipGoTMRPPX8h0riiCfsPd2xg/1YXBLJwgdTFQz
cPgMkpUA8US6TJly8L/KTxor/FiWDFg4dIaazjPLSFYs+C48AIP6sgitAoGAKoDu08whJKjCh7Ho
GTzBEt0LSr5A0VEzHMVfTF01TPX3guwAFS5wY1VUXUs+Z5XLEkZHzGNhC3VkASoPsO2VfstHeAAl
ynZFbfYvjxRrfRNPND/ALmFixTAqxewLOb3oQ6yAPX57EyitJMNYIeEQ3Tkb61sXVun0dccsd3u6
OCECgYEAtsdkle/6Xjm6WMM/Y0L3S4uNFjxz800jS9IHbYlFQy8MOd36kb/qSLk2arhyvTIxj8KA
kpRD8yT1QasAGv7x10h4zgV7C34A4ztgpijHR6cxfNrJFz3z2FrA+BGMmSggBquV2caJn1SFSVu5
h2o2Eo/NQ8Cp0ZLEA0U841T9fDU=
java cookies
add a comment |
I have generated a private key using below function -
public static String getPrivateKey() {
KeyPairGenerator keyPairGenerator;
KeyPair keyPair = null;
try
keyPairGenerator = KeyPairGenerator.getInstance("RSA");
keyPairGenerator.initialize(2048);
keyPair = keyPairGenerator.generateKeyPair();
PrivateKey privateKey = keyPair.getPrivate();
catch (NoSuchAlgorithmException e)
// TODO Auto-generated catch block
e.printStackTrace();
return Base64.getMimeEncoder().encodeToString( keyPair.getPrivate().getEncoded());
I am trying to set this to my cookie using below-
Cookie ck = new Cookie("privatekey", privateKey);// creating cookie object
ck.setMaxAge(120);
response.addCookie(ck);// adding cookie in the response
I am getting below error. The key is in string format itself. How can I do this? Do I need to change it to some format?
An invalid character [13] was present in the Cookie value
My private key generated looks like below-
MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQCrQC7J4ZvuXi9u8nK+BLGM5PeP
FOeirNatorzG1EN63V09O2GquR+/OEUI8JesERlf+OUBOo4tjO7O1dgnoZMJUkxwhS5zaCooKkl1
1y728sA4//eHhIjpsNdDQkW3a4NKHo1w5zigcgG08Uz9aLdfy/VlK3mFB8RGliAxUvNzSw+zzkpw
rEEMdIEWYJm9U73+2giESGqRJA8zDIRJ5nSsG3PNuA05K/DZSR/103R0bsZ4BlcinSt5zKmRH5vt
+srX/u8tLX/pF+w5G1S/yzoP3CrP/AtLrEB6Ts5ZmE7Pj4IFdcY2HfNpphbEKCFbqk5E0EkarZZD
JFujnS6PqehtAgMBAAECggEAPYF1zIg9KuWk/6IQV/Lzmfj6eOc3MpQFHqPeTUMbYVt0C3PyZhDL
ODCLiuRudRxHEtMf3MsdGXsOojbnxYQgfS6Tya3ruwNkcLyPWcWJVqRlKZO1YXTWf6hGCCAbTf9N
TiefATfqfKW1uzkXP8SGZ9+nKUjuAjuB4SA2O8DhMzzhfpwXPHmuWRk58llBfZe8RJn1sO0wUztr
BRSvxRpUChBY2xrdMQFIQOnR9qa93MxyjP5qdoqc6zwoZ3XQ0fMwTWwb1WMdf4fFJ/BJuZSDfgoG
ejLgtcVqJY3wB8Pr0NPGBn2Jov+VhQAbm+B7AKue0DX6yw1qRXxIbLAnAlkRgQKBgQDhR2pPcZTL
mLICUge3+2W4ErE58++lIYPvis0inaISPl8IO5XPWdBprOlR67xRGx5dtRpOBsPgGCerNUf2uUSf
cBFJXOP7KgO9qpTHYuwmAizLszDJNdvvLmn3xXuqv0oGjqfG50zZYtJatCFAlu1AOpScZMaE+QHH
tiEUx0Y33QKBgQDCmp5Bgq5/A73DfIJBi1y+HYMpaZ5Xq6n5f6lTmgQd0YIuD90cRFjh4JbZiodU
Yg4YIfI9pr7qQpe0/kM6XMHN3Y8Zfx6za1djZUosETcTVGJtyu0dwJDpRH9N2SzZyHNZHV1t0wM2
eNVsthTEm9wOoQ2i6TETTYAn+79yyWkx0QKBgCqdJLoEZT4iE0InHDisQHCScJ3iy+kzrs5oNief
I+JJlBZtlwgTGD51K+mIKyY4eAUH1gL+epzwVMipGoTMRPPX8h0riiCfsPd2xg/1YXBLJwgdTFQz
cPgMkpUA8US6TJly8L/KTxor/FiWDFg4dIaazjPLSFYs+C48AIP6sgitAoGAKoDu08whJKjCh7Ho
GTzBEt0LSr5A0VEzHMVfTF01TPX3guwAFS5wY1VUXUs+Z5XLEkZHzGNhC3VkASoPsO2VfstHeAAl
ynZFbfYvjxRrfRNPND/ALmFixTAqxewLOb3oQ6yAPX57EyitJMNYIeEQ3Tkb61sXVun0dccsd3u6
OCECgYEAtsdkle/6Xjm6WMM/Y0L3S4uNFjxz800jS9IHbYlFQy8MOd36kb/qSLk2arhyvTIxj8KA
kpRD8yT1QasAGv7x10h4zgV7C34A4ztgpijHR6cxfNrJFz3z2FrA+BGMmSggBquV2caJn1SFSVu5
h2o2Eo/NQ8Cp0ZLEA0U841T9fDU=
java cookies
Did you try removing=
?
– Hasitha M Jayawardana
Mar 28 at 10:40
Yep . didn't work
– themaster
Mar 28 at 11:22
You should specify the Java container (tomcat I guess). TryURLEncoder.encode(privateKey, "UTF-8" )
. Possible duplicate of stackoverflow.com/questions/38687210/…
– GramThanos
Mar 28 at 13:54
add a comment |
I have generated a private key using below function -
public static String getPrivateKey() {
KeyPairGenerator keyPairGenerator;
KeyPair keyPair = null;
try
keyPairGenerator = KeyPairGenerator.getInstance("RSA");
keyPairGenerator.initialize(2048);
keyPair = keyPairGenerator.generateKeyPair();
PrivateKey privateKey = keyPair.getPrivate();
catch (NoSuchAlgorithmException e)
// TODO Auto-generated catch block
e.printStackTrace();
return Base64.getMimeEncoder().encodeToString( keyPair.getPrivate().getEncoded());
I am trying to set this to my cookie using below-
Cookie ck = new Cookie("privatekey", privateKey);// creating cookie object
ck.setMaxAge(120);
response.addCookie(ck);// adding cookie in the response
I am getting below error. The key is in string format itself. How can I do this? Do I need to change it to some format?
An invalid character [13] was present in the Cookie value
My private key generated looks like below-
MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQCrQC7J4ZvuXi9u8nK+BLGM5PeP
FOeirNatorzG1EN63V09O2GquR+/OEUI8JesERlf+OUBOo4tjO7O1dgnoZMJUkxwhS5zaCooKkl1
1y728sA4//eHhIjpsNdDQkW3a4NKHo1w5zigcgG08Uz9aLdfy/VlK3mFB8RGliAxUvNzSw+zzkpw
rEEMdIEWYJm9U73+2giESGqRJA8zDIRJ5nSsG3PNuA05K/DZSR/103R0bsZ4BlcinSt5zKmRH5vt
+srX/u8tLX/pF+w5G1S/yzoP3CrP/AtLrEB6Ts5ZmE7Pj4IFdcY2HfNpphbEKCFbqk5E0EkarZZD
JFujnS6PqehtAgMBAAECggEAPYF1zIg9KuWk/6IQV/Lzmfj6eOc3MpQFHqPeTUMbYVt0C3PyZhDL
ODCLiuRudRxHEtMf3MsdGXsOojbnxYQgfS6Tya3ruwNkcLyPWcWJVqRlKZO1YXTWf6hGCCAbTf9N
TiefATfqfKW1uzkXP8SGZ9+nKUjuAjuB4SA2O8DhMzzhfpwXPHmuWRk58llBfZe8RJn1sO0wUztr
BRSvxRpUChBY2xrdMQFIQOnR9qa93MxyjP5qdoqc6zwoZ3XQ0fMwTWwb1WMdf4fFJ/BJuZSDfgoG
ejLgtcVqJY3wB8Pr0NPGBn2Jov+VhQAbm+B7AKue0DX6yw1qRXxIbLAnAlkRgQKBgQDhR2pPcZTL
mLICUge3+2W4ErE58++lIYPvis0inaISPl8IO5XPWdBprOlR67xRGx5dtRpOBsPgGCerNUf2uUSf
cBFJXOP7KgO9qpTHYuwmAizLszDJNdvvLmn3xXuqv0oGjqfG50zZYtJatCFAlu1AOpScZMaE+QHH
tiEUx0Y33QKBgQDCmp5Bgq5/A73DfIJBi1y+HYMpaZ5Xq6n5f6lTmgQd0YIuD90cRFjh4JbZiodU
Yg4YIfI9pr7qQpe0/kM6XMHN3Y8Zfx6za1djZUosETcTVGJtyu0dwJDpRH9N2SzZyHNZHV1t0wM2
eNVsthTEm9wOoQ2i6TETTYAn+79yyWkx0QKBgCqdJLoEZT4iE0InHDisQHCScJ3iy+kzrs5oNief
I+JJlBZtlwgTGD51K+mIKyY4eAUH1gL+epzwVMipGoTMRPPX8h0riiCfsPd2xg/1YXBLJwgdTFQz
cPgMkpUA8US6TJly8L/KTxor/FiWDFg4dIaazjPLSFYs+C48AIP6sgitAoGAKoDu08whJKjCh7Ho
GTzBEt0LSr5A0VEzHMVfTF01TPX3guwAFS5wY1VUXUs+Z5XLEkZHzGNhC3VkASoPsO2VfstHeAAl
ynZFbfYvjxRrfRNPND/ALmFixTAqxewLOb3oQ6yAPX57EyitJMNYIeEQ3Tkb61sXVun0dccsd3u6
OCECgYEAtsdkle/6Xjm6WMM/Y0L3S4uNFjxz800jS9IHbYlFQy8MOd36kb/qSLk2arhyvTIxj8KA
kpRD8yT1QasAGv7x10h4zgV7C34A4ztgpijHR6cxfNrJFz3z2FrA+BGMmSggBquV2caJn1SFSVu5
h2o2Eo/NQ8Cp0ZLEA0U841T9fDU=
java cookies
I have generated a private key using below function -
public static String getPrivateKey() {
KeyPairGenerator keyPairGenerator;
KeyPair keyPair = null;
try
keyPairGenerator = KeyPairGenerator.getInstance("RSA");
keyPairGenerator.initialize(2048);
keyPair = keyPairGenerator.generateKeyPair();
PrivateKey privateKey = keyPair.getPrivate();
catch (NoSuchAlgorithmException e)
// TODO Auto-generated catch block
e.printStackTrace();
return Base64.getMimeEncoder().encodeToString( keyPair.getPrivate().getEncoded());
I am trying to set this to my cookie using below-
Cookie ck = new Cookie("privatekey", privateKey);// creating cookie object
ck.setMaxAge(120);
response.addCookie(ck);// adding cookie in the response
I am getting below error. The key is in string format itself. How can I do this? Do I need to change it to some format?
An invalid character [13] was present in the Cookie value
My private key generated looks like below-
MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQCrQC7J4ZvuXi9u8nK+BLGM5PeP
FOeirNatorzG1EN63V09O2GquR+/OEUI8JesERlf+OUBOo4tjO7O1dgnoZMJUkxwhS5zaCooKkl1
1y728sA4//eHhIjpsNdDQkW3a4NKHo1w5zigcgG08Uz9aLdfy/VlK3mFB8RGliAxUvNzSw+zzkpw
rEEMdIEWYJm9U73+2giESGqRJA8zDIRJ5nSsG3PNuA05K/DZSR/103R0bsZ4BlcinSt5zKmRH5vt
+srX/u8tLX/pF+w5G1S/yzoP3CrP/AtLrEB6Ts5ZmE7Pj4IFdcY2HfNpphbEKCFbqk5E0EkarZZD
JFujnS6PqehtAgMBAAECggEAPYF1zIg9KuWk/6IQV/Lzmfj6eOc3MpQFHqPeTUMbYVt0C3PyZhDL
ODCLiuRudRxHEtMf3MsdGXsOojbnxYQgfS6Tya3ruwNkcLyPWcWJVqRlKZO1YXTWf6hGCCAbTf9N
TiefATfqfKW1uzkXP8SGZ9+nKUjuAjuB4SA2O8DhMzzhfpwXPHmuWRk58llBfZe8RJn1sO0wUztr
BRSvxRpUChBY2xrdMQFIQOnR9qa93MxyjP5qdoqc6zwoZ3XQ0fMwTWwb1WMdf4fFJ/BJuZSDfgoG
ejLgtcVqJY3wB8Pr0NPGBn2Jov+VhQAbm+B7AKue0DX6yw1qRXxIbLAnAlkRgQKBgQDhR2pPcZTL
mLICUge3+2W4ErE58++lIYPvis0inaISPl8IO5XPWdBprOlR67xRGx5dtRpOBsPgGCerNUf2uUSf
cBFJXOP7KgO9qpTHYuwmAizLszDJNdvvLmn3xXuqv0oGjqfG50zZYtJatCFAlu1AOpScZMaE+QHH
tiEUx0Y33QKBgQDCmp5Bgq5/A73DfIJBi1y+HYMpaZ5Xq6n5f6lTmgQd0YIuD90cRFjh4JbZiodU
Yg4YIfI9pr7qQpe0/kM6XMHN3Y8Zfx6za1djZUosETcTVGJtyu0dwJDpRH9N2SzZyHNZHV1t0wM2
eNVsthTEm9wOoQ2i6TETTYAn+79yyWkx0QKBgCqdJLoEZT4iE0InHDisQHCScJ3iy+kzrs5oNief
I+JJlBZtlwgTGD51K+mIKyY4eAUH1gL+epzwVMipGoTMRPPX8h0riiCfsPd2xg/1YXBLJwgdTFQz
cPgMkpUA8US6TJly8L/KTxor/FiWDFg4dIaazjPLSFYs+C48AIP6sgitAoGAKoDu08whJKjCh7Ho
GTzBEt0LSr5A0VEzHMVfTF01TPX3guwAFS5wY1VUXUs+Z5XLEkZHzGNhC3VkASoPsO2VfstHeAAl
ynZFbfYvjxRrfRNPND/ALmFixTAqxewLOb3oQ6yAPX57EyitJMNYIeEQ3Tkb61sXVun0dccsd3u6
OCECgYEAtsdkle/6Xjm6WMM/Y0L3S4uNFjxz800jS9IHbYlFQy8MOd36kb/qSLk2arhyvTIxj8KA
kpRD8yT1QasAGv7x10h4zgV7C34A4ztgpijHR6cxfNrJFz3z2FrA+BGMmSggBquV2caJn1SFSVu5
h2o2Eo/NQ8Cp0ZLEA0U841T9fDU=
java cookies
java cookies
asked Mar 28 at 9:02
themasterthemaster
1661 silver badge18 bronze badges
1661 silver badge18 bronze badges
Did you try removing=
?
– Hasitha M Jayawardana
Mar 28 at 10:40
Yep . didn't work
– themaster
Mar 28 at 11:22
You should specify the Java container (tomcat I guess). TryURLEncoder.encode(privateKey, "UTF-8" )
. Possible duplicate of stackoverflow.com/questions/38687210/…
– GramThanos
Mar 28 at 13:54
add a comment |
Did you try removing=
?
– Hasitha M Jayawardana
Mar 28 at 10:40
Yep . didn't work
– themaster
Mar 28 at 11:22
You should specify the Java container (tomcat I guess). TryURLEncoder.encode(privateKey, "UTF-8" )
. Possible duplicate of stackoverflow.com/questions/38687210/…
– GramThanos
Mar 28 at 13:54
Did you try removing
=
?– Hasitha M Jayawardana
Mar 28 at 10:40
Did you try removing
=
?– Hasitha M Jayawardana
Mar 28 at 10:40
Yep . didn't work
– themaster
Mar 28 at 11:22
Yep . didn't work
– themaster
Mar 28 at 11:22
You should specify the Java container (tomcat I guess). Try
URLEncoder.encode(privateKey, "UTF-8" )
. Possible duplicate of stackoverflow.com/questions/38687210/…– GramThanos
Mar 28 at 13:54
You should specify the Java container (tomcat I guess). Try
URLEncoder.encode(privateKey, "UTF-8" )
. Possible duplicate of stackoverflow.com/questions/38687210/…– GramThanos
Mar 28 at 13:54
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55393643%2fsending-private-key-to-the-cookie%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Is this question similar to what you get asked at work? Learn more about asking and sharing private information with your coworkers using Stack Overflow for Teams.
Is this question similar to what you get asked at work? Learn more about asking and sharing private information with your coworkers using Stack Overflow for Teams.
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55393643%2fsending-private-key-to-the-cookie%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Did you try removing
=
?– Hasitha M Jayawardana
Mar 28 at 10:40
Yep . didn't work
– themaster
Mar 28 at 11:22
You should specify the Java container (tomcat I guess). Try
URLEncoder.encode(privateKey, "UTF-8" )
. Possible duplicate of stackoverflow.com/questions/38687210/…– GramThanos
Mar 28 at 13:54