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.connector;
015
016/**
017 * Enumeration of resources.
018 */
019public enum Resource {
020
021    KEY_CHANGE("key-change"),
022    NEW_REG("new-reg"),
023    NEW_AUTHZ("new-authz"),
024    NEW_CERT("new-cert"),
025    REVOKE_CERT("revoke-cert");
026
027    private final String path;
028
029    private Resource(String path) {
030        this.path = path;
031    }
032
033    /**
034     * Returns the resource path.
035     *
036     * @return resource path
037     */
038    public String path() {
039        return path;
040    }
041
042}