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    NEW_NONCE("newNonce"),
022    NEW_ACCOUNT("newAccount"),
023    NEW_ORDER("newOrder"),
024    NEW_AUTHZ("newAuthz"),
025    REVOKE_CERT("revokeCert"),
026    KEY_CHANGE("keyChange");
027
028    private final String path;
029
030    Resource(String path) {
031        this.path = path;
032    }
033
034    /**
035     * Returns the resource path.
036     *
037     * @return resource path
038     */
039    public String path() {
040        return path;
041    }
042
043}