KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > javax > crypto > BadPaddingException


1 /*
2  * @(#)BadPaddingException.java 1.6 04/03/15
3  *
4  * Copyright (c) 2004 Sun Microsystems, Inc. All Rights Reserved.
5  * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
6  */

7   
8 /*
9  * NOTE:
10  * Because of various external restrictions (i.e. US export
11  * regulations, etc.), the actual source code can not be provided
12  * at this time. This file represents the skeleton of the source
13  * file, so that javadocs of the API can be created.
14  */

15
16 package javax.crypto;
17
18 import java.security.GeneralSecurityException;
19
20 /**
21  * This exception is thrown when a particular padding mechanism is
22  * expected for the input data but the data is not padded properly.
23  *
24  * @author Gigi Ankney
25  *
26  * @version 1.11, 03/15/04
27  * @since 1.4
28  */

29 public class BadPaddingException extends GeneralSecurityException
30 {
31
32     /**
33      * Constructs a BadPaddingException with no detail
34      * message. A detail message is a String that describes this
35      * particular exception.
36      */

37     public BadPaddingException() { }
38
39     /**
40      * Constructs a BadPaddingException with the specified
41      * detail message.
42      *
43      * @param msg the detail message.
44      */

45     public BadPaddingException(String msg) { }
46 }
47
Popular Tags