(self, message)
return self._signer.sign(message)
Signs the given message.

        Args:
            message (bytes): The message to sign.

        Returns:
            bytes: The message's cryptographic signature.

        Raises:
            ValueError:
                Signer is not available if metadata identity endpoint is used.
Signs the given message.
Signs the given message .
def sign_bytes(self, message):
        """Signs the given message.

        Args:
            message (bytes): The message to sign.

        Returns:
            bytes: The message's cryptographic signature.

        Raises:
            ValueError:
                Signer is not available if metadata identity endpoint is used.
        """
        if self._use_metadata_identity_endpoint:
            raise ValueError(
                "Signer is not available if metadata identity endpoint is used"
            )
        return self._signer.sign(message)
def sign_bytes ( self , message ) : if self . _use_metadata_identity_endpoint : raise ValueError ( "Signer is not available if metadata identity endpoint is used" ) return self . _signer . sign ( message )