001/*
002 * (C) Copyright 2011 Nuxeo SA (http://nuxeo.com/) and contributors.
003 *
004 * All rights reserved. This program and the accompanying materials
005 * are made available under the terms of the GNU Lesser General Public License
006 * (LGPL) version 2.1 which accompanies this distribution, and is available at
007 * http://www.gnu.org/licenses/lgpl.html
008 *
009 * This library is distributed in the hope that it will be useful,
010 * but WITHOUT ANY WARRANTY; without even the implied warranty of
011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
012 * Lesser General Public License for more details.
013 *
014 * Contributors:
015 *    Wojciech Sulejman
016 */
017package org.nuxeo.ecm.platform.signature.api.user;
018
019/**
020 * List of required X500 Principal fields required for certificate generation
021 *
022 * @author <a href="mailto:ws@nuxeo.com">Wojciech Sulejman</a>
023 */
024public enum CNField {
025    /**
026     * Country name
027     */
028    C,
029    /**
030     * Organization name
031     */
032    O,
033    /**
034     * Organizational Unit name
035     */
036    OU,
037    // TODO to be added
038    /**
039     * Localization
040     */
041    // L,
042    /**
043     * Common Name
044     */
045    CN,
046    /**
047     * Email
048     */
049    Email,
050    /**
051     * UserID
052     */
053    UserID
054}