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
016import java.io.Serial;
017
018import org.shredzone.acme4j.Problem;
019
020/**
021 * The client is not authorized to perform the operation. The {@link Problem} document
022 * will give further details (e.g. "client IP is blocked").
023 */
024public class AcmeUnauthorizedException extends AcmeServerException {
025    @Serial
026    private static final long serialVersionUID = 9064697508262919366L;
027
028    /**
029     * Creates a new {@link AcmeUnauthorizedException}.
030     *
031     * @param problem
032     *            {@link Problem} that caused the exception
033     */
034    public AcmeUnauthorizedException(Problem problem) {
035        super(problem);
036    }
037
038}