1 /*
2  * Licensed to the Apache Software Foundation (ASF) under one
3  * or more contributor license agreements.  See the NOTICE file
4  * distributed with this work for additional information
5  * regarding copyright ownership.  The ASF licenses this file
6  * to you under the Apache License, Version 2.0 (the
7  * "License"); you may not use this file except in compliance
8  * with the License.  You may obtain a copy of the License at
9  *
10  *   http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing,
13  * software distributed under the License is distributed on an
14  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15  * KIND, either express or implied.  See the License for the
16  * specific language governing permissions and limitations
17  * under the License.
18  */
19 
20 package org.apache.guacamole.net.auth.credentials;
21 
22 /**
23  * A security-related exception thrown when access is denied to a user because
24  * the provided credentials are not sufficient for authentication to succeed.
25  * The validity or invalidity of the given credentials is not specified, and
26  * more information is needed before a decision can be made. Additional
27  * information describing the form of valid credentials is provided.
28  */
29 public class GuacamoleInsufficientCredentialsException extends GuacamoleCredentialsException {
30 
31     /**
32      * Creates a new GuacamoleInsufficientCredentialsException with the given
33      * message, cause, and associated credential information.
34      *
35      * @param message
36      *     A human readable description of the exception that occurred.
37      *
38      * @param cause
39      *     The cause of this exception.
40      *
41      * @param credentialsInfo
42      *     Information describing the form of valid credentials.
43      */
GuacamoleInsufficientCredentialsException(String message, Throwable cause, CredentialsInfo credentialsInfo)44     public GuacamoleInsufficientCredentialsException(String message, Throwable cause,
45             CredentialsInfo credentialsInfo) {
46         super(message, cause, credentialsInfo);
47     }
48 
49     /**
50      * Creates a new GuacamoleInsufficientCredentialsException with the given
51      * message and associated credential information.
52      *
53      * @param message
54      *     A human readable description of the exception that occurred.
55      *
56      * @param credentialsInfo
57      *     Information describing the form of valid credentials.
58      */
GuacamoleInsufficientCredentialsException(String message, CredentialsInfo credentialsInfo)59     public GuacamoleInsufficientCredentialsException(String message, CredentialsInfo credentialsInfo) {
60         super(message, credentialsInfo);
61     }
62 
63     /**
64      * Creates a new GuacamoleInsufficientCredentialsException with the given
65      * cause and associated credential information.
66      *
67      * @param cause
68      *     The cause of this exception.
69      *
70      * @param credentialsInfo
71      *     Information describing the form of valid credentials.
72      */
GuacamoleInsufficientCredentialsException(Throwable cause, CredentialsInfo credentialsInfo)73     public GuacamoleInsufficientCredentialsException(Throwable cause, CredentialsInfo credentialsInfo) {
74         super(cause, credentialsInfo);
75     }
76 
77 }
78