001/**
002 * Copyright 2014 Emmanuel Bourg
003 *
004 * Licensed under the Apache License, Version 2.0 (the "License");
005 * you may not use this file except in compliance with the License.
006 * You may obtain a copy of the License at
007 *
008 *     http://www.apache.org/licenses/LICENSE-2.0
009 *
010 * Unless required by applicable law or agreed to in writing, software
011 * distributed under the License is distributed on an "AS IS" BASIS,
012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013 * See the License for the specific language governing permissions and
014 * limitations under the License.
015 */
016
017package net.jsign.pe;
018
019/**
020 * Type of a WIN_CERTIFICATE structure.
021 * 
022 * @author Emmanuel Bourg
023 * @since 1.3
024 */
025public enum CertificateType {
026
027    /** X.509 Certificate (not supported) */
028    X509(0x0001),
029
030    /* PKCS#7 SignedData structure */
031    PKCS_SIGNED_DATA(0x0002), 
032
033    /** Reserved */
034    RESERVED_1(0x0003),
035
036    /** Terminal Server Protocol Stack Certificate (not supported) */
037    TS_STACK_SIGNED(0x0004);
038
039    private short value;
040
041    CertificateType(int value) {
042        this.value = (short) value;
043    }
044
045    public short getValue() {
046        return value;
047    }
048}