All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.bouncycastle.oer.its.template.ieee1609dot2dot1.Ieee1609Dot2Dot1EcaEeInterface Maven / Gradle / Ivy

Go to download

The Bouncy Castle Java APIs for ASN.1 extension and utility APIs used to support bcpkix and bctls with the BC FIPS provider. The APIs may also be used with other providers although if being used in a FIPS context it is the responsibility of the user to ensure that any other providers used are FIPS certified and used appropriately.

There is a newer version: 2.0.3
Show newest version
package org.bouncycastle.oer.its.template.ieee1609dot2dot1;

import org.bouncycastle.asn1.ASN1Integer;
import org.bouncycastle.oer.OERDefinition;
import org.bouncycastle.oer.its.template.ieee1609dot2.IEEE1609dot2;
import org.bouncycastle.oer.its.template.ieee1609dot2.basetypes.Ieee1609Dot2BaseTypes;


public class Ieee1609Dot2Dot1EcaEeInterface
{
    /**
     * EeEcaCertRequest ::= SEQUENCE {
     * version         Uint8 (2),
     * generationTime  Time32,
     * type            CertificateType,
     * tbsCert         ToBeSignedCertificate (WITH COMPONENTS {
     * ...,
     * id (WITH COMPONENTS {
     * ...,
     * linkageData ABSENT
     * }),
     * cracaId ('000000'H),
     * crlSeries (0),
     * appPermissions ABSENT,
     * certIssuePermissions ABSENT,
     * certRequestPermissions PRESENT,
     * verifyKeyIndicator (WITH COMPONENTS {
     * verificationKey
     * })
     * }),
     * canonicalId     IA5String OPTIONAL,
     * ...
     * }
     */
    public static final OERDefinition.Builder EeEcaCertRequest = OERDefinition.seq(
        Ieee1609Dot2BaseTypes.UINT8.label("version").validSwitchValue(new ASN1Integer(2)),
        Ieee1609Dot2BaseTypes.Time32.label("generationTime"),
        IEEE1609dot2.CertificateType.label("type"),
        IEEE1609dot2.ToBeSignedCertificate.label("tbsCert"),
        OERDefinition.optional(OERDefinition.ia5String().label("canonicalId")),
        OERDefinition.extension()
    ).typeName("EeEcaCertRequest");
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy