001/*
002 * acme4j - Java ACME client
003 *
004 * Copyright (C) 2015 Richard "Shred" Körber
005 *   http://acme4j.shredzone.org
006 *
007 * Licensed under the Apache License, Version 2.0 (the "License");
008 * you may not use this file except in compliance with the License.
009 *
010 * This program is distributed in the hope that it will be useful,
011 * but WITHOUT ANY WARRANTY; without even the implied warranty of
012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
013 */
014package org.shredzone.acme4j.exception;
015
016/**
017 * An exception that is thrown when the client is not authorized. The details will give
018 * an explanation for the reasons (e.g. "client not on a whitelist").
019 */
020public class AcmeUnauthorizedException extends AcmeServerException {
021    private static final long serialVersionUID = 9064697508262919366L;
022
023    /**
024     * Creates a new {@link AcmeUnauthorizedException}.
025     *
026     * @param type
027     *            System readable error type (here
028     *            {@code "urn:ietf:params:acme:error:unauthorized"})
029     * @param detail
030     *            Human readable error message
031     */
032    public AcmeUnauthorizedException(String type, String detail) {
033        super(type, detail);
034    }
035
036}