Example #1
0
 def __init__(self):
     self.version = base.Optional(base.Integer, [base.Integer(2)],
                                  name='version')
     self.serial = base.Integer(1, name='serial')
     self.signatureAlgorithm = Algorithm(name='signatureAlgorithm')
     self.issuer = CertStrings(name='issuer')
     self.validity = Validity()
     self.subject = CertStrings(name='subject')
     self.pubkey = PubKey(name="subjectPubkey")
     self.extentions = Extentions()
     base.Sequence.__init__(self, [
         self.version, self.serial, self.signatureAlgorithm, self.issuer,
         self.validity, self.subject, self.pubkey, self.extentions
     ])
Example #2
0
 def __init__(self):
     self.version = base.Integer(1, name='version', check=True)
     self.digestAlgorithms = DigestAlgorithms()
     self.contentInfo = ContentInfo()
     self.certificates = base.Optional(x509.Certificate, [x509.Certificate()], name='certificates')
     self.signerInfos = base.Set([SignerInfo()], name="signerInfos")
     base.Sequence.__init__(self, [self.version, self.digestAlgorithms,
                                   self.contentInfo, self.certificates, self.signerInfos])
Example #3
0
 def __init__(self):
     self.version = base.Integer(1, name='version', check=True)
     self.issuerAndSerial = IssuerAndSerial()
     self.digestAlgorithm = x509.Algorithm('hashAlgorithmIdentifier', name='digestAlgorithm')
     self.attributes = Attributes()
     self.encryptionAlgorithm = x509.Algorithm('rsaEncryption', name="encryptionAlgorithm")
     self.digest = base.OctetString(name='digest')
     base.Sequence.__init__(self,
                            [self.version,
                             self.issuerAndSerial,
                             self.digestAlgorithm,
                             self.attributes,
                             self.encryptionAlgorithm,
                             self.digest])
Example #4
0
class TextSearchResponse(VeloModelMixin, TransactionMixin, Model):
    count = base.Integer('vcc:TotalCount')
Example #5
0
 def __init__(self, algo, val=None):
     value = [base.ObjectId(algo)]
     if val is not None:
         value += [base.Integer(val)]
     base.Sequence.__init__(self, value)
Example #6
0
class IssuerAndSerial(base.Sequence):
    value = [x509.CertStrings(name='issuer'), base.Integer(1, name='serial')]