/** * Return an OID that creates a branch under the current one. * * @param branchID node numbers for the new branch. * @return the OID for the new created branch. */ public ASN1ObjectIdentifier branch(String branchID) { return new ASN1ObjectIdentifier(this, branchID); }
public AttributeTypeAndValue( String oid, ASN1Encodable value) { this(new ASN1ObjectIdentifier(oid), value); }
public AttributeTypeAndValue( String oid, ASN1Encodable value) { this(new ASN1ObjectIdentifier(oid), value); }
/** Método que devuelve el Identificador del algoritmo. * @param oid OID del algoritmo a idenfiticar * @return Identificador del algoritmo formateado y listo para introducir * en el cms. */ static AlgorithmIdentifier makeAlgId(final String oid) { return new AlgorithmIdentifier(new ASN1ObjectIdentifier(oid), DERNull.INSTANCE); }
/** * add a given extension field for the standard extensions tag (tag 0) */ public void addExtension( String oid, boolean critical, byte[] value) { this.addExtension(new ASN1ObjectIdentifier(oid), critical, value); }
public CMSProcessableByteArray( byte[] bytes) { this(new ASN1ObjectIdentifier(CMSObjectIdentifiers.data.getId()), bytes); }
public CMSProcessableFile( File file, int bufSize) { this(new ASN1ObjectIdentifier(CMSObjectIdentifiers.data.getId()), file, bufSize); }
/** * Set the mapping for the encryption algorithm used in association with a SignedData generation * or interpretation. * * @param oid object identifier to map. * @param algorithmName algorithm name to use. */ public static void setSigningEncryptionAlgorithmMapping(String oid, String algorithmName) { ASN1ObjectIdentifier id = new ASN1ObjectIdentifier(oid); CMSSignedHelper.INSTANCE.setSigningEncryptionAlgorithmMapping(id, algorithmName); }
/** * add a given extension field for the standard extensions tag (tag 3) */ public void addExtension( String oid, boolean critical, ASN1Encodable value) { this.addExtension(new ASN1ObjectIdentifier(oid), critical, value); }
public CMSTypedStream( String oid, InputStream in) { this(new ASN1ObjectIdentifier(oid), in, BUF_SIZ); }
/** * add a given extension field for the standard extensions tag * @throws IOException */ public void addExtension( String oid, boolean critical, ASN1Encodable value) throws IOException { extGenerator.addExtension(new ASN1ObjectIdentifier(oid), critical, value); }
/** * @deprecated use ASN1ObjectIdentifier */ public ContentHints( DERObjectIdentifier contentType) { this(new ASN1ObjectIdentifier(contentType.getId())); }
/** * @deprecated use ASN1ObjectIdentifier * @param objectId */ public AlgorithmIdentifier( DERObjectIdentifier objectId) { this.objectId = new ASN1ObjectIdentifier(objectId.getId()); }
static ASN1ObjectIdentifier getAlgorithmOID( String algorithmName) { algorithmName = Strings.toUpperCase(algorithmName); if (algorithms.containsKey(algorithmName)) { return (ASN1ObjectIdentifier)algorithms.get(algorithmName); } return new ASN1ObjectIdentifier(algorithmName); }
/** * add a given extension field for the standard extensions tag (tag 3) * The value parameter becomes the contents of the octet string associated * with the extension. */ public void addExtension( String oid, boolean critical, byte[] value) { this.addExtension(new ASN1ObjectIdentifier(oid), critical, value); }
static ASN1ObjectIdentifier fromOctetString(byte[] enc) { final OidHandle hdl = new OidHandle(enc); ASN1ObjectIdentifier oid = pool.get(hdl); if (oid == null) { return new ASN1ObjectIdentifier(enc); } return oid; } }
/** * add a given extension field for the standard extensions tag (tag 3) */ public void addExtension( DERObjectIdentifier oid, boolean critical, ASN1Encodable value) { extGenerator.addExtension(new ASN1ObjectIdentifier(oid.getId()), critical, value); }
/** * add a given extension field for the standard extensions tag (tag 3) */ public void addExtension( DERObjectIdentifier oid, boolean critical, byte[] value) { extGenerator.addExtension(new ASN1ObjectIdentifier(oid.getId()), critical, value); }
/** * @deprecated use ASN1ObjectIdentifier */ public ASN1EncodableVector getAll(DERObjectIdentifier oid) { return getAll(new ASN1ObjectIdentifier(oid.getId())); }
/** * add a given extension field for the standard extensions tag (tag 0) */ public void addExtension( ASN1ObjectIdentifier oid, boolean critical, byte[] value) { extGenerator.addExtension(new ASN1ObjectIdentifier(oid.getId()), critical, value); }