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 standard resources, and their key name in the CA's directory.
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    RENEWAL_INFO("renewalInfo");
028
029    private final String path;
030
031    Resource(String path) {
032        this.path = path;
033    }
034
035    /**
036     * Returns the key name in the directory.
037     *
038     * @return key name
039     */
040    public String path() {
041        return path;
042    }
043
044}