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

es.gob.jmulticard.asn1.der.pkcs15.Odf Maven / Gradle / Ivy

There is a newer version: 1.8
Show newest version
package es.gob.jmulticard.asn1.der.pkcs15;

import es.gob.jmulticard.asn1.DecoderObject;
import es.gob.jmulticard.asn1.OptionalDecoderObjectElement;
import es.gob.jmulticard.asn1.der.Record;

/** Objeto PKCS#15 ODF (Object Description File) ASN.1.
 * Su estructura general es una repetición de registros de tipo PKCS15Objects:
 * 
 * PKCS15Objects ::= CHOICE {
 *   privateKeys         [0] PrivateKeys,
 *   publicKeys          [1] PublicKeys,
 *   trustedPublicKeys   [2] PublicKeys,
 *   secretKeys          [3] SecretKeys,
 *   certificates        [4] Certificates,
 *   trustedCertificates [5] Certificates,
 *   usefulCertificates  [6] Certificates,
 *   dataObjects         [7] DataObjects,
 *   authObjects         [8] AuthObjects,
 *   ... -- For future extensions
 * }
 *
 * PrivateKeys  ::= PathOrObjects {PrivateKeyType}
 * SecretKeys   ::= PathOrObjects {SecretKeyType}
 * PublicKeys   ::= PathOrObjects {PublicKeyType}
 * Certificates ::= PathOrObjects {CertificateType}
 * DataObjects  ::= PathOrObjects {DataType}
 * AuthObjects  ::= PathOrObjects {AuthenticationType}
 *
 * PathOrObjects {ObjectType} ::= CHOICE {
 *   path    Path,
 *   objects [0] SEQUENCE OF ObjectType,
 *   ...,
 *   indirect-protected [1] ReferencedValue {EnvelopedData {SEQUENCE OF ObjectType}},
 *   direct-protected   [2] EnvelopedData   {SEQUENCE OF ObjectType},
 * }
 * 
* @author Tomás García-Merás */ public final class Odf extends Record { /** Construye un objeto PKCS#15 ODF (Object Description File) ASN.1. */ public Odf() { super( new OptionalDecoderObjectElement[] { new OptionalDecoderObjectElement(PrivateKeysContextSpecific.class, true), // PrKDF new OptionalDecoderObjectElement(PublicKeysContextSpecific.class, true), new OptionalDecoderObjectElement(TrustedPublicKeysContextSpecific.class, true), new OptionalDecoderObjectElement(SecretKeysContextSpecific.class, true), new OptionalDecoderObjectElement(CertificatesContextSpecific.class, true) // CDF } ); } /** Obtiene la ruta (Path ASN.1 PKCS#15) hacia el CDF. * @return Ruta (Path ASN.1 PKCS#15) hacia el CDF, o null * si este ODF no contiene esta ruta. */ public Path getCdfPath() { for (int i=0;inull
* si este ODF no contiene esta ruta. */ public Path getPrKdfPath() { for (int i=0;inull * si este ODF no contiene esta ruta. */ public Path getPuKdfPath() { for (int i=0;i




© 2015 - 2024 Weber Informatics LLC | Privacy Policy