public EncryptedObjectStoreData(AlgorithmIdentifier encryptionAlgorithm, byte[] encryptedContent) { this.encryptionAlgorithm = encryptionAlgorithm; this.encryptedContent = new DEROctetString(encryptedContent); }
public RecipientKeyIdentifier( byte[] subjectKeyIdentifier, DERGeneralizedTime date, OtherKeyAttribute other) { this.subjectKeyIdentifier = new DEROctetString(subjectKeyIdentifier); this.date = date; this.other = other; }
public EncryptedPrivateKeyInfo( AlgorithmIdentifier algId, byte[] encoding) { this.algId = algId; this.data = new DEROctetString(encoding); }
public IDEACBCPar( byte[] iv) { this.iv = new DEROctetString(iv); }
public Extension( ASN1ObjectIdentifier extnId, boolean critical, byte[] value) { this(extnId, critical, new DEROctetString(value)); }
public EncryptedSecretKeyData(AlgorithmIdentifier keyEncryptionAlgorithm, byte[] encryptedKeyData) { this.keyEncryptionAlgorithm = keyEncryptionAlgorithm; this.encryptedKeyData = new DEROctetString(Arrays.clone(encryptedKeyData)); }
/** * Return an in-memory, encodable, representation of the OCTET STRING. * * @return a DEROctetString. * @throws IOException if there is an issue loading the data. */ public ASN1Primitive getLoadedObject() throws IOException { return new DEROctetString(stream.toByteArray()); }
public PBEParameter( byte[] salt, int iterations) { if (salt.length != 8) { throw new IllegalArgumentException("salt length must be 8"); } this.salt = new DEROctetString(salt); this.iterations = new ASN1Integer(iterations); }
public ASN1Primitive toASN1Primitive() { return new DERTaggedObject(false, tagNo, new DEROctetString(convertValue())); } }
public PBEParameter( byte[] salt, int iterations) { if (salt.length != 8) { throw new IllegalArgumentException("salt length must be 8"); } this.salt = new DEROctetString(salt); this.iterations = new ASN1Integer(iterations); }
public DigestedData( AlgorithmIdentifier digestAlgorithm, ContentInfo encapContentInfo, byte[] digest) { this.version = new ASN1Integer(0); this.digestAlgorithm = digestAlgorithm; this.encapContentInfo = encapContentInfo; this.digest = new DEROctetString(digest); }
public ECDSAPublicKey(ASN1ObjectIdentifier usage, byte[] ppY) throws IllegalArgumentException { this.usage = usage; setPublicPointY(new DEROctetString(ppY)); }
public PbkdMacIntegrityCheck(AlgorithmIdentifier macAlgorithm, KeyDerivationFunc pbkdAlgorithm, byte[] mac) { this.macAlgorithm = macAlgorithm; this.pbkdAlgorithm = pbkdAlgorithm; this.mac = new DEROctetString(Arrays.clone(mac)); }
public SecretKeyData(ASN1ObjectIdentifier keyAlgorithm, byte[] keyBytes) { this.keyAlgorithm = keyAlgorithm; this.keyBytes = new DEROctetString(Arrays.clone(keyBytes)); }
public ObjectData(BigInteger type, String identifier, Date creationDate, Date lastModifiedDate, byte[] data, String comment) { this.type = type; this.identifier = identifier; this.creationDate = new DERGeneralizedTime(creationDate); this.lastModifiedDate = new DERGeneralizedTime(lastModifiedDate); this.data = new DEROctetString(Arrays.clone(data)); this.comment = comment; }
public ASN1Primitive toASN1Primitive() { ASN1EncodableVector v = new ASN1EncodableVector(); v.add(version); v.add(new DEROctetString(publicKey)); return new DERSequence(v); } }
public PublishTrustAnchors(BigInteger seqNumber, AlgorithmIdentifier hashAlgorithm, byte[][] anchorHashes) { this.seqNumber = new ASN1Integer(seqNumber); this.hashAlgorithm = hashAlgorithm; ASN1EncodableVector v = new ASN1EncodableVector(); for (int i = 0; i != anchorHashes.length; i++) { v.add(new DEROctetString(Arrays.clone(anchorHashes[i]))); } this.anchorHashes = new DERSequence(v); }
public ASN1Primitive toASN1Primitive() { ASN1EncodableVector v = new ASN1EncodableVector(); v.add(new DEROctetString(nonce)); if (icvLen != 12) { v.add(new ASN1Integer(icvLen)); } return new DERSequence(v); } }
public ASN1Primitive toASN1Primitive() { ASN1EncodableVector v = new ASN1EncodableVector(); v.add(keyGenAlgorithm); v.add(macAlgorithm); v.add(new DEROctetString(getWitness())); 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); } }