7f2d1b3a4744aa9124e68d0cd1814f760a4b1b40Craig McDonnell/*
7f2d1b3a4744aa9124e68d0cd1814f760a4b1b40Craig McDonnell * The contents of this file are subject to the terms of the Common Development and
7f2d1b3a4744aa9124e68d0cd1814f760a4b1b40Craig McDonnell * Distribution License (the License). You may not use this file except in compliance with the
7f2d1b3a4744aa9124e68d0cd1814f760a4b1b40Craig McDonnell * License.
7f2d1b3a4744aa9124e68d0cd1814f760a4b1b40Craig McDonnell *
7f2d1b3a4744aa9124e68d0cd1814f760a4b1b40Craig McDonnell * You can obtain a copy of the License at legal/CDDLv1.0.txt. See the License for the
7f2d1b3a4744aa9124e68d0cd1814f760a4b1b40Craig McDonnell * specific language governing permission and limitations under the License.
7f2d1b3a4744aa9124e68d0cd1814f760a4b1b40Craig McDonnell *
7f2d1b3a4744aa9124e68d0cd1814f760a4b1b40Craig McDonnell * When distributing Covered Software, include this CDDL Header Notice in each file and include
7f2d1b3a4744aa9124e68d0cd1814f760a4b1b40Craig McDonnell * the License file at legal/CDDLv1.0.txt. If applicable, add the following below the CDDL
7f2d1b3a4744aa9124e68d0cd1814f760a4b1b40Craig McDonnell * Header, with the fields enclosed by brackets [] replaced by your own identifying
7f2d1b3a4744aa9124e68d0cd1814f760a4b1b40Craig McDonnell * information: "Portions copyright [year] [name of copyright owner]".
7f2d1b3a4744aa9124e68d0cd1814f760a4b1b40Craig McDonnell *
7f2d1b3a4744aa9124e68d0cd1814f760a4b1b40Craig McDonnell * Copyright 2014 ForgeRock AS.
7f2d1b3a4744aa9124e68d0cd1814f760a4b1b40Craig McDonnell */
7f2d1b3a4744aa9124e68d0cd1814f760a4b1b40Craig McDonnellpackage com.sun.identity.idsvcs.opensso;
7f2d1b3a4744aa9124e68d0cd1814f760a4b1b40Craig McDonnell
7f2d1b3a4744aa9124e68d0cd1814f760a4b1b40Craig McDonnellimport com.sun.identity.idsvcs.GeneralFailure;
7f2d1b3a4744aa9124e68d0cd1814f760a4b1b40Craig McDonnell
7f2d1b3a4744aa9124e68d0cd1814f760a4b1b40Craig McDonnell/**
7f2d1b3a4744aa9124e68d0cd1814f760a4b1b40Craig McDonnell * Specialisation of GeneralFailure Exception type for indicating Access Denied without altering the signature
7f2d1b3a4744aa9124e68d0cd1814f760a4b1b40Craig McDonnell * of {@link com.sun.identity.idsvcs.opensso.IdentityServicesImpl#create }.
7f2d1b3a4744aa9124e68d0cd1814f760a4b1b40Craig McDonnell *
7f2d1b3a4744aa9124e68d0cd1814f760a4b1b40Craig McDonnell * This exception type was introduced, rather than using {@link com.sun.identity.idsvcs.AccessDenied } so that
7f2d1b3a4744aa9124e68d0cd1814f760a4b1b40Craig McDonnell * IdentityServices.wsdl does not need to be modified and existing clients are not broken.
7f2d1b3a4744aa9124e68d0cd1814f760a4b1b40Craig McDonnell *
7f2d1b3a4744aa9124e68d0cd1814f760a4b1b40Craig McDonnell * @see com.sun.identity.idsvcs.opensso.IdentityServicesImpl
7f2d1b3a4744aa9124e68d0cd1814f760a4b1b40Craig McDonnell * @see com.sun.identity.idsvcs.AccessDenied
7f2d1b3a4744aa9124e68d0cd1814f760a4b1b40Craig McDonnell * @since 12.0.0
7f2d1b3a4744aa9124e68d0cd1814f760a4b1b40Craig McDonnell */
7f2d1b3a4744aa9124e68d0cd1814f760a4b1b40Craig McDonnellpublic class GeneralAccessDeniedError extends GeneralFailure {
7f2d1b3a4744aa9124e68d0cd1814f760a4b1b40Craig McDonnell
7f2d1b3a4744aa9124e68d0cd1814f760a4b1b40Craig McDonnell public GeneralAccessDeniedError(String message) {
7f2d1b3a4744aa9124e68d0cd1814f760a4b1b40Craig McDonnell super(message);
7f2d1b3a4744aa9124e68d0cd1814f760a4b1b40Craig McDonnell }
7f2d1b3a4744aa9124e68d0cd1814f760a4b1b40Craig McDonnell}