• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#
2# This file is part of pyasn1-modules software.
3#
4# Copyright (c) 2005-2017, Ilya Etingof <etingof@gmail.com>
5# License: http://pyasn1.sf.net/license.html
6#
7# SNMPv3 message syntax
8#
9# ASN.1 source from:
10# http://www.ietf.org/rfc/rfc3414.txt
11#
12from pyasn1.type import constraint
13from pyasn1.type import namedtype
14from pyasn1.type import univ
15
16
17class UsmSecurityParameters(univ.Sequence):
18    componentType = namedtype.NamedTypes(
19        namedtype.NamedType('msgAuthoritativeEngineID', univ.OctetString()),
20        namedtype.NamedType('msgAuthoritativeEngineBoots',
21                            univ.Integer().subtype(subtypeSpec=constraint.ValueRangeConstraint(0, 2147483647))),
22        namedtype.NamedType('msgAuthoritativeEngineTime',
23                            univ.Integer().subtype(subtypeSpec=constraint.ValueRangeConstraint(0, 2147483647))),
24        namedtype.NamedType('msgUserName',
25                            univ.OctetString().subtype(subtypeSpec=constraint.ValueSizeConstraint(0, 32))),
26        namedtype.NamedType('msgAuthenticationParameters', univ.OctetString()),
27        namedtype.NamedType('msgPrivacyParameters', univ.OctetString())
28    )
29