def __init__(self, payload=None, header_registry=None):
        """Creates a JWS object.

        :param payload(bytes): An arbitrary value (optional).
        :param header_registry: Optional additions to the header registry
        """
        self.objects = dict()
        if payload:
            self.objects['payload'] = payload
        self.verifylog = None
        self._allowed_algs = None
        self.header_registry = JWSEHeaderRegistry(JWSHeaderRegistry)
        if header_registry:
            self.header_registry.update(header_registry)
def __init__ ( self , payload = None , header_registry = None ) : self . objects = dict ( ) if payload : self . objects [ 'payload' ] = payload self . verifylog = None self . _allowed_algs = None self . header_registry = JWSEHeaderRegistry ( JWSHeaderRegistry ) if header_registry : self . header_registry . update ( header_registry )
Creates a JWS object.

        :param payload(bytes): An arbitrary value (optional).
        :param header_registry: Optional additions to the header registry