001/* 
002 * Copyright (C) 2016 Hobrasoft s.r.o.
003 *
004 * This program is free software: you can redistribute it and/or modify
005 * it under the terms of the GNU Affero General Public License as published by
006 * the Free Software Foundation, either version 3 of the License, or
007 * (at your option) any later version.
008 *
009 * This program 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
012 * GNU Affero General Public License for more details.
013 *
014 * You should have received a copy of the GNU Affero General Public License
015 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
016 */
017package cz.hobrasoft.pdfmu.jackson;
018
019import com.fasterxml.jackson.annotation.JsonPropertyDescription;
020import java.util.List;
021import java.util.Map;
022
023/**
024 *
025 * @author <a href="mailto:filip.bartek@hobrasoft.cz">Filip Bartek</a>
026 */
027public class CertificateResult {
028
029    @JsonPropertyDescription("The type of this certificate. Only type X.509 is supported for further examination.")
030    public String type;
031
032    @JsonPropertyDescription("Is this certificate self-signed? In other words, is the subject identical to the issuer?")
033    public boolean selfSigned;
034
035    // Maps types to values.
036    // Common types: CN, E, OU, O, L, ST, C
037    @JsonPropertyDescription("Subject distinguished name attributes and their values. Common attributes: CN, E, OU, O, L, ST, C. An attribute may have more than one value associated. The values of an attribute are contained in an array.")
038    public Map<String, List<String>> subject;
039    @JsonPropertyDescription("Issuer distinguished name attributes and their values. Common attributes: CN, E, OU, O, L, ST, C. An attribute may have more than one value associated. The values of an attribute are contained in an array.")
040    public Map<String, List<String>> issuer;
041}