KeyManagementException.java revision 0
0N/A/*
1879N/A * Copyright 1996-2003 Sun Microsystems, Inc. All Rights Reserved.
0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
0N/A *
0N/A * This code is free software; you can redistribute it and/or modify it
0N/A * under the terms of the GNU General Public License version 2 only, as
0N/A * published by the Free Software Foundation. Sun designates this
0N/A * particular file as subject to the "Classpath" exception as provided
0N/A * by Sun in the LICENSE file that accompanied this code.
0N/A *
0N/A * This code is distributed in the hope that it will be useful, but WITHOUT
0N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
0N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
0N/A * version 2 for more details (a copy is included in the LICENSE file that
0N/A * accompanied this code).
0N/A *
0N/A * You should have received a copy of the GNU General Public License version
0N/A * 2 along with this work; if not, write to the Free Software Foundation,
1472N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
1472N/A *
1472N/A * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
0N/A * CA 95054 USA or visit www.sun.com if you need additional information or
0N/A * have any questions.
0N/A */
1879N/A
1879N/Apackage java.security;
1879N/A
1879N/A/**
1879N/A * This is the general key management exception for all operations
1879N/A * dealing with key management. Examples of subclasses of
1879N/A * KeyManagementException that developers might create for
1879N/A * giving more detailed information could include:
1879N/A *
1879N/A * <ul>
1879N/A * <li>KeyIDConflictException
1879N/A * <li>KeyAuthorizationFailureException
1879N/A * <li>ExpiredKeyException
1879N/A * </ul>
1879N/A *
1879N/A * @author Benjamin Renaud
1879N/A *
1879N/A * @see Key
1879N/A * @see KeyException
1879N/A */
1879N/A
1879N/Apublic class KeyManagementException extends KeyException {
1879N/A
1879N/A private static final long serialVersionUID = 947674216157062695L;
1879N/A
1879N/A /**
1879N/A * Constructs a KeyManagementException with no detail message. A
1879N/A * detail message is a String that describes this particular
1879N/A * exception.
1879N/A */
1879N/A public KeyManagementException() {
1879N/A super();
1879N/A }
1879N/A
1879N/A /**
1879N/A * Constructs a KeyManagementException with the specified detail
1879N/A * message. A detail message is a String that describes this
1879N/A * particular exception.
1879N/A *
1879N/A * @param msg the detail message.
1879N/A */
1879N/A public KeyManagementException(String msg) {
1879N/A super(msg);
1879N/A }
1879N/A
1879N/A /**
1879N/A * Creates a <code>KeyManagementException</code> with the specified
0N/A * detail message and cause.
0N/A *
0N/A * @param message the detail message (which is saved for later retrieval
0N/A * by the {@link #getMessage()} method).
0N/A * @param cause the cause (which is saved for later retrieval by the
0N/A * {@link #getCause()} method). (A <tt>null</tt> value is permitted,
0N/A * and indicates that the cause is nonexistent or unknown.)
1121N/A * @since 1.5
0N/A */
0N/A public KeyManagementException(String message, Throwable cause) {
0N/A super(message, cause);
0N/A }
0N/A
0N/A /**
1121N/A * Creates a <code>KeyManagementException</code> with the specified cause
1121N/A * and a detail message of <tt>(cause==null ? null : cause.toString())</tt>
0N/A * (which typically contains the class and detail message of
0N/A * <tt>cause</tt>).
0N/A *
0N/A * @param cause the cause (which is saved for later retrieval by the
0N/A * {@link #getCause()} method). (A <tt>null</tt> value is permitted,
0N/A * and indicates that the cause is nonexistent or unknown.)
0N/A * @since 1.5
0N/A */
0N/A public KeyManagementException(Throwable cause) {
0N/A super(cause);
0N/A }
0N/A}
0N/A