javax.crypto.BadPaddingException: Given final block not properly padded

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Oracle Community by 3042753, 1 year ago
Given final block not properly padded
via Coderanch by Mridul Dinakar, 11 months ago
javax.crypto.BadPaddingException: Given final block not properly padded
at com.sun.crypto.provider.CipherCore.doFinal(CipherCore.java:811)
at com.sun.crypto.provider.CipherCore.doFinal(CipherCore.java:676)
at com.sun.crypto.provider.AESCipher.engineDoFinal(AESCipher.java:313)
at javax.crypto.Cipher.doFinal(Cipher.java:2087)
at oracle.security.am.common.utilities.crypto.AESEncrypter.decrypt(AESEncrypter.java:162)
at oracle.security.am.common.utilities.crypto.OAMKeyStore.decryptKeyData(OAMKeyStore.java:382)
at oracle.security.am.proxy.oam.util.SecretStore.getDecryptedSecret(SecretStore.java:163)
at oracle.security.am.proxy.oam.util.SecretStore.getWebGateSharedSecret(SecretStore.java:98)
at oracle.security.am.proxy.oam.pbl.plugin.OAMProxyEngine.getSSOToken(OAMProxyEngine.java:622)
at oracle.security.am.proxy.oam.pbl.plugin.OAMProxyEngine.handleOAMLoginRequest(OAMProxyEngine.java:340)

Users with the same issue

3 times, 1 year ago
Samebug visitor profile picture
Unknown user
7 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 5 months ago
Samebug visitor profile picture
Unknown user
Once, 5 months ago
Samebug visitor profile picture
Unknown user
Once, 5 months ago
12 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.