public AttCertIssuer( V2Form v2Form) { obj = v2Form; choiceObj = new DERTaggedObject(false, 0, obj); }
public ASN1Primitive toASN1Primitive() { return new DERTaggedObject(false, tagNo, value); } }
public OriginatorIdentifierOrKey( OriginatorPublicKey id) { this.id = new DERTaggedObject(false, 1, id); }
public RecipientInfo( KeyAgreeRecipientInfo info) { this.info = new DERTaggedObject(false, 1, info); }
public ASN1Primitive toASN1Primitive() { if (tag == directoryName) // directoryName is explicitly tagged as it is a CHOICE { return new DERTaggedObject(true, tag, obj); } else { return new DERTaggedObject(false, tag, obj); } } }
public ASN1Primitive toASN1Primitive() { if (tstEvidence != null) { return new DERTaggedObject(false, 0, tstEvidence); } return null; } }
public RecipientInfo( OtherRecipientInfo info) { this.info = new DERTaggedObject(false, 4, info); }
public AttCertIssuer( V2Form v2Form) { obj = v2Form; choiceObj = new DERTaggedObject(false, 0, obj); }
public SignerIdentifier( ASN1OctetString id) { this.id = new DERTaggedObject(false, 0, id); }
public SMIMEEncryptionKeyPreferenceAttribute( IssuerAndSerialNumber issAndSer) { super(SMIMEAttributes.encrypKeyPref, new DERSet(new DERTaggedObject(false, 0, issAndSer))); }
public SMIMEEncryptionKeyPreferenceAttribute( IssuerAndSerialNumber issAndSer) { super(SMIMEAttributes.encrypKeyPref, new DERSet(new DERTaggedObject(false, 0, issAndSer))); }
private void addOptional(ASN1EncodableVector v, int tagNo, ASN1Encodable obj) { if (obj != null) { v.add(new DERTaggedObject(true, tagNo, obj)); } } }
private void addOptional(ASN1EncodableVector v, int tagNo, ASN1Encodable obj) { if (obj != null) { v.add(new DERTaggedObject(true, tagNo, obj)); } } }
private void addOptional(ASN1EncodableVector v, int tagNo, ASN1Encodable obj) { if (obj != null) { v.add(new DERTaggedObject(true, tagNo, obj)); } } }
static Collection getOthersFromStore(ASN1ObjectIdentifier otherRevocationInfoFormat, Store otherRevocationInfos) { List others = new ArrayList(); for (Iterator it = otherRevocationInfos.getMatches(null).iterator(); it.hasNext();) { ASN1Encodable info = (ASN1Encodable)it.next(); OtherRevocationInfoFormat infoFormat = new OtherRevocationInfoFormat(otherRevocationInfoFormat, info); validateInfoFormat(infoFormat); others.add(new DERTaggedObject(false, 1, infoFormat)); } return others; }
/** * Add optional text. * * @param text optional agreed text to add to the MAC. * @return the current builder instance. */ public Builder withText(byte[] text) { this.text = DerUtil.toByteArray(new DERTaggedObject(false, 0, DerUtil.getOctetString(text))); return this; }
public ASN1Primitive toASN1Primitive() { return new DERTaggedObject(false, tagNo, new DEROctetString(convertValue())); } }
public ASN1Primitive toASN1Primitive() { ASN1EncodableVector v = new ASN1EncodableVector(); v.add(sessionEncryptedKey); if (transportParameters != null) { v.add(new DERTaggedObject(false, 0, transportParameters)); } return new DERSequence(v); } }
public ASN1Primitive toASN1Primitive() { ASN1EncodableVector v = new ASN1EncodableVector(); v.add(version); v.add(subject); v.add(subjectPublicKeyInfo); v.add(new DERTaggedObject(false, 0, attributes)); return new DERSequence(v); } }
public ASN1Primitive toASN1Primitive() { ASN1EncodableVector v = new ASN1EncodableVector(); v.add(encryptionParamSet); if (ephemeralPublicKey != null) { v.add(new DERTaggedObject(false, 0, ephemeralPublicKey)); } v.add(new DEROctetString(ukm)); return new DERSequence(v); } }