def check_encryption_password(self, password):
        """Checks whether the supplied password is correct for the medium.

        in password of type str
            The password to check.

        raises :class:`VBoxErrorNotSupported`
            Encryption is not configured for this medium.
        
        raises :class:`VBoxErrorPasswordIncorrect`
            The given password is incorrect.
        
        """
        if not isinstance(password, basestring):
            raise TypeError("password can only be an instance of type basestring")
        self._call("checkEncryptionPassword",
                     in_p=[password])