otupy.types.base.binary.Binary
- class Binary(b=None)
Bases:
Openc2TypeOpenC2 Binary data
Binary data that are expected to be encoded with base64 as defined in [RFC4648], Section 5 (Sec. 3.1.5).
Methods
Builds from base64encoding
getSet the value internally and covert it, if necessary.
Encodes with base64
- __init__(b=None)
Initializes from bytes, Binary, base64 strings, or null
- classmethod fromdict(dic, e=None)
Builds from base64encoding
- Parameters:
dic – The intermediary dictionary representation from which the object is built.
e – The
Encoderthat is being used.
- Returns:
An instance of this class initialized from the dictionary values.
- set(b)
Set the value internally and covert it, if necessary.