public static ObjectStore getInstance(Object o) { if (o instanceof ObjectStore) { return (ObjectStore)o; } else if (o != null) { return new ObjectStore(ASN1Sequence.getInstance(o)); } return null; }
store = ObjectStore.getInstance(aIn.readObject()); ObjectStoreIntegrityCheck integrityCheck = store.getIntegrityCheck(); AlgorithmIdentifier integrityAlg; verifyMac(store.getStoreData().toASN1Primitive().getEncoded(), pbkdMacIntegrityCheck, password); verifySig(store.getStoreData(), sigCheck, certs[0].getPublicKey()); verifySig(store.getStoreData(), sigCheck, verificationKey); ASN1Encodable sData = store.getStoreData();
ObjectStore store = new ObjectStore(encStoreData, new ObjectStoreIntegrityCheck(new PbkdMacIntegrityCheck(hmacAlgorithm, hmacPkbdAlgorithm, mac))); outputStream.write(store.getEncoded());
ObjectStore store = new ObjectStore(encStoreData, new ObjectStoreIntegrityCheck(signatureCheck)); bcParam.getOutputStream().write(store.getEncoded());