def METHOD_NAME(
    self, *names: str, username: str | None = None
) -> HTTPAuthCredential:
    default = HTTPAuthCredential(username=username, password=None)
    if not self.is_available():
        return default
    import keyring
    for name in names:
        credential = keyring.METHOD_NAME(name, username)
        if credential:
            return HTTPAuthCredential(
                username=credential.username, password=credential.password
            )
    return default