javax.crypto
Class BadPaddingException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--java.security.GeneralSecurityException
                    |
                    +--javax.crypto.BadPaddingException

public class BadPaddingException
extends GeneralSecurityException

Exception for any kind of padding scheme violation.


Attention:  This is not a SUN implementation!

This class has been developed by IAIK according to the documentation publically available.
For SUNīs documentation of this class see http://java.sun.com/security/JCE1.2/spec/apidoc/index.html


A BadPaddingException is thrown if a given input data is not padded as demanded by a particular padding scheme.

See Also:
Serialized Form

Constructor Summary
BadPaddingException()
          Default Constructor.
BadPaddingException(java.lang.String msg)
          Creates a BadPaddingException with a description string message as parameter.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, printStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BadPaddingException

public BadPaddingException()
Default Constructor. Creates a BadPaddingException without any parameters for describing the exception.

BadPaddingException

public BadPaddingException(java.lang.String msg)
Creates a BadPaddingException with a description string message as parameter.
Parameters:
msg - the string describing the exception